Skip to content

Commit 0f1ad57

Browse files
authored
Netif (Linux): fix unused-result warning (#1340)
1 parent bbc9cf4 commit 0f1ad57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/netif/netif_linux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ bool ffNetifGetDefaultRouteImpl(char iface[IF_NAMESIZE + 1], uint32_t* ifIndex)
1313
if (!netRoute) return false;
1414

1515
// skip first line
16-
fscanf(netRoute, "%*[^\n]\n");
16+
FF_UNUSED(fscanf(netRoute, "%*[^\n]\n"));
1717

1818
unsigned long long destination; //, gateway, flags, refCount, use, metric, mask, mtu,
1919
while (fscanf(netRoute, "%" FF_STR(IF_NAMESIZE) "s%llx%*[^\n]", iface, &destination) == 2)

0 commit comments

Comments
 (0)