From dac4cb05f70fa0b778f3a2d8945c949498c65f33 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Wed, 29 Aug 2018 08:55:25 +0200 Subject: [PATCH] Fix bug #54569: Compiler warning in ip4.c: unused parameter dest --- src/core/ipv4/ip4.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/ipv4/ip4.c b/src/core/ipv4/ip4.c index 5614561a..ed8ebe33 100644 --- a/src/core/ipv4/ip4.c +++ b/src/core/ipv4/ip4.c @@ -163,6 +163,9 @@ ip4_route(const ip4_addr_t *dest) } #endif /* LWIP_MULTICAST_TX_OPTIONS */ + /* bug #54569: in case LWIP_SINGLE_NETIF=1 and LWIP_DEBUGF() disabled, the following loop is optimized away */ + LWIP_UNUSED_ARG(dest); + /* iterate through netifs */ NETIF_FOREACH(netif) { /* is the netif up, does it have a link and a valid address? */