mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 18:14:53 +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);
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user