From 4bedb07aa0a3db66a9ab6ed5f04478cb82ca3309 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Tue, 24 Apr 2007 08:35:19 +0000 Subject: [PATCH] Added some more LWIP_UNUSED_ARG()s --- src/api/tcpip.c | 7 ++++++- src/core/raw.c | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/api/tcpip.c b/src/api/tcpip.c index 1bce3cbf..cf159ca5 100644 --- a/src/api/tcpip.c +++ b/src/api/tcpip.c @@ -87,8 +87,9 @@ tcp_timer_needed(void) #if IP_REASSEMBLY static void -ip_timer(void *data) +ip_timer(void *arg) { + LWIP_UNUSED_ARG(arg); LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip: ip_reass_tmr()\n")); ip_reass_tmr(); sys_timeout( IP_TMR_INTERVAL, ip_timer, NULL); @@ -99,6 +100,7 @@ ip_timer(void *data) static void arp_timer(void *arg) { + LWIP_UNUSED_ARG(arg); LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip: etharp_tmr()\n")); etharp_tmr(); sys_timeout( ARP_TMR_INTERVAL, arp_timer, NULL); @@ -109,6 +111,7 @@ arp_timer(void *arg) static void dhcp_timer_coarse(void *arg) { + LWIP_UNUSED_ARG(arg); LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip: dhcp_coarse_tmr()\n")); dhcp_coarse_tmr(); sys_timeout(DHCP_COARSE_TIMER_SECS*1000, dhcp_timer_coarse, NULL); @@ -117,6 +120,7 @@ dhcp_timer_coarse(void *arg) static void dhcp_timer_fine(void *arg) { + LWIP_UNUSED_ARG(arg); LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip: dhcp_fine_tmr()\n")); dhcp_fine_tmr(); sys_timeout(DHCP_FINE_TIMER_MSECS, dhcp_timer_fine, NULL); @@ -167,6 +171,7 @@ static void tcpip_thread(void *arg) { struct tcpip_msg *msg; + LWIP_UNUSED_ARG(arg); #if IP_REASSEMBLY sys_timeout( IP_TMR_INTERVAL, ip_timer, NULL); diff --git a/src/core/raw.c b/src/core/raw.c index 0b4fd505..a82315b0 100644 --- a/src/core/raw.c +++ b/src/core/raw.c @@ -90,6 +90,8 @@ raw_input(struct pbuf *p, struct netif *inp) s16_t proto; u8_t eaten = 0; + LWIP_UNUSED_ARG(inp); + iphdr = p->payload; proto = IPH_PROTO(iphdr);