mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 00:14:02 +00:00
icmp_input: fix possibly unused variable (used for debug output only)
This commit is contained in:
parent
5c0054d8ee
commit
14919e34a1
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user