Netif (Linux): fix unused-result warning (#1340)

This commit is contained in:
apocelipes
2024-10-14 12:30:39 +08:00
committed by GitHub
parent bbc9cf4980
commit 0f1ad5750d
+1 -1
View File
@@ -13,7 +13,7 @@ bool ffNetifGetDefaultRouteImpl(char iface[IF_NAMESIZE + 1], uint32_t* ifIndex)
if (!netRoute) return false;
// skip first line
fscanf(netRoute, "%*[^\n]\n");
FF_UNUSED(fscanf(netRoute, "%*[^\n]\n"));
unsigned long long destination; //, gateway, flags, refCount, use, metric, mask, mtu,
while (fscanf(netRoute, "%" FF_STR(IF_NAMESIZE) "s%llx%*[^\n]", iface, &destination) == 2)