From 72cb8355e0aa2d280e4646c80bb5b64d3de5991c Mon Sep 17 00:00:00 2001 From: krzysztof-cabaj Date: Fri, 13 Dec 2024 14:35:34 +0100 Subject: [PATCH] pkg/lwip: fix unused parameter error - when DEVELHELP = 0 --- pkg/lwip/contrib/_netif.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/lwip/contrib/_netif.c b/pkg/lwip/contrib/_netif.c index b648abf400ff..c9d0a27e6f34 100644 --- a/pkg/lwip/contrib/_netif.c +++ b/pkg/lwip/contrib/_netif.c @@ -94,6 +94,7 @@ int netif_set_opt(const netif_t *iface, netopt_t opt, uint16_t context, switch (opt) { case NETOPT_ACTIVE: { assert(value_len >= sizeof(netopt_enable_t)); + (void)value_len; /* Eliminates compilation unused parameter error, when DEVELHELP = 0*/ netopt_enable_t *state = value; if (*state == NETOPT_ENABLE) { netifapi_netif_set_up(netif);