icmp_input: fix possibly unused variable (used for debug output only)

This commit is contained in:
goldsimon 2017-09-15 11:44:22 +02:00
parent 5c0054d8ee
commit 14919e34a1

View File

@ -105,6 +105,8 @@ icmp_input(struct pbuf *p, struct netif *inp)
type = *((u8_t *)p->payload); type = *((u8_t *)p->payload);
#ifdef LWIP_DEBUG #ifdef LWIP_DEBUG
code = *(((u8_t *)p->payload)+1); code = *(((u8_t *)p->payload)+1);
/* if debug is enabled but debug statement below is somehow disabled: */
LWIP_UNUSED_ARG(code);
#endif /* LWIP_DEBUG */ #endif /* LWIP_DEBUG */
switch (type) { switch (type) {
case ICMP_ER: case ICMP_ER: