[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Compiler warning fix
From: |
Chris Hiszpanski |
Subject: |
[lwip-users] Compiler warning fix |
Date: |
Sat, 23 Jul 2005 21:36:31 +0000 |
Hi,
When compiling etharp.c with #define ARP_QUEUEING 0, the temporary pbuf *p
in etharp_query is not used and generates a compiler warning. Here is a diff
of the change I made to fix this:
*** etharp.c.orig Mon Dec 27 09:50:03 2004
--- etharp.c Sat Jul 23 17:23:58 2005
***************
*** 684,690 ****
--- 684,692 ----
*/
err_t etharp_query(struct netif *netif, struct ip_addr *ipaddr, struct
pbuf *q)
{
+ #if ARP_QUEUEING
struct pbuf *p;
+ #endif
struct eth_addr * srcaddr = (struct eth_addr *)netif->hwaddr;
err_t result = ERR_MEM;
s8_t i; /* ARP entry index */
Cheers,
Chris
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
- [lwip-users] Compiler warning fix,
Chris Hiszpanski <=