From 14919e34a1f4095922da6174f57343c96d86e88d Mon Sep 17 00:00:00 2001 From: goldsimon Date: Fri, 15 Sep 2017 11:44:22 +0200 Subject: [PATCH] icmp_input: fix possibly unused variable (used for debug output only) --- src/core/ipv4/icmp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/ipv4/icmp.c b/src/core/ipv4/icmp.c index c71a566d..71af6e8a 100644 --- a/src/core/ipv4/icmp.c +++ b/src/core/ipv4/icmp.c @@ -105,6 +105,8 @@ icmp_input(struct pbuf *p, struct netif *inp) type = *((u8_t *)p->payload); #ifdef LWIP_DEBUG code = *(((u8_t *)p->payload)+1); + /* if debug is enabled but debug statement below is somehow disabled: */ + LWIP_UNUSED_ARG(code); #endif /* LWIP_DEBUG */ switch (type) { case ICMP_ER: