From 13791ccff336857dabf4aeca83e22935666aa1eb Mon Sep 17 00:00:00 2001 From: goldsimon Date: Mon, 13 Feb 2012 20:41:58 +0100 Subject: [PATCH] Fixed unused local variable warning (patch #7711) --- src/netif/etharp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/netif/etharp.c b/src/netif/etharp.c index 876018fe..a979b737 100644 --- a/src/netif/etharp.c +++ b/src/netif/etharp.c @@ -1278,7 +1278,9 @@ ethernet_input(struct pbuf *p, struct netif *netif) { struct eth_hdr* ethhdr; u16_t type; +#if LWIP_ARP || ETHARP_SUPPORT_VLAN s16_t ip_hdr_offset = SIZEOF_ETH_HDR; +#endif /* LWIP_ARP || ETHARP_SUPPORT_VLAN */ if (p->len <= SIZEOF_ETH_HDR) { /* a packet with only an ethernet header (or less) is not valid for us */