From f1c4a9ebfa24ca4b95d350aed3577a108ca3791c Mon Sep 17 00:00:00 2001 From: fbernon Date: Sun, 29 Jul 2007 08:31:31 +0000 Subject: [PATCH] Minor fix (warning when LWIP_DEBUG is undefined) --- src/core/ipv4/icmp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/ipv4/icmp.c b/src/core/ipv4/icmp.c index 3082fb00..b4ee8b89 100644 --- a/src/core/ipv4/icmp.c +++ b/src/core/ipv4/icmp.c @@ -56,7 +56,9 @@ void icmp_input(struct pbuf *p, struct netif *inp) { u8_t type; +#ifdef LWIP_DEBUG u8_t code; +#endif /* LWIP_DEBUG */ struct icmp_echo_hdr *iecho; struct ip_hdr *iphdr; struct ip_addr tmpaddr; @@ -74,7 +76,9 @@ icmp_input(struct pbuf *p, struct netif *inp) } type = *((u8_t *)p->payload); +#ifdef LWIP_DEBUG code = *(((u8_t *)p->payload)+1); +#endif /* LWIP_DEBUG */ switch (type) { case ICMP_ECHO: /* broadcast or multicast destination address? */