mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
net/devif/devif_poll.c: Correct a new warning found in build testing. devif/devif_poll.c:768:7: warning: unused variable 'hsec' [-Wunused-variable] (#97)
This commit is contained in:
committed by
Abdelatif Guettouche
parent
f00569816f
commit
21ea255ea4
@@ -765,7 +765,9 @@ int devif_poll(FAR struct net_driver_s *dev, devif_poll_callback_t callback)
|
||||
int devif_timer(FAR struct net_driver_s *dev, int delay,
|
||||
devif_poll_callback_t callback)
|
||||
{
|
||||
#if defined(CONFIG_NET_IPv4_REASSEMBLY) || defined(NET_TCP_HAVE_STACK)
|
||||
int hsec = TICK2HSEC(delay);
|
||||
#endif
|
||||
int bstop = false;
|
||||
|
||||
#ifdef CONFIG_NET_IPv4_REASSEMBLY
|
||||
|
||||
Reference in New Issue
Block a user