mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
Fix warning in TCPIP
When disabling TCP support, the following warning is triggered: ../..//core/net/ip/tcpip.c:159:1: warning: ‘start_periodic_tcp_timer’ defined but not used [-Wunused-function] An added ifdef guard now only defines this function when TCP support is enabled.
This commit is contained in:
parent
158087db62
commit
e8cbf2e5fb
@ -155,6 +155,7 @@ unsigned char tcpip_is_forwarding; /* Forwarding right now? */
|
||||
PROCESS(tcpip_process, "TCP/IP stack");
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#if UIP_TCP || UIP_CONF_IP_FORWARD
|
||||
static void
|
||||
start_periodic_tcp_timer(void)
|
||||
{
|
||||
@ -162,6 +163,7 @@ start_periodic_tcp_timer(void)
|
||||
etimer_restart(&periodic);
|
||||
}
|
||||
}
|
||||
#endif /* UIP_TCP || UIP_CONF_IP_FORWARD */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static void
|
||||
check_for_tcp_syn(void)
|
||||
|
Loading…
Reference in New Issue
Block a user