Skip to content

Commit

Permalink
net/devif/devif_poll.c: Correct a new warning found in build testing.…
Browse files Browse the repository at this point in the history
… devif/devif_poll.c:768:7: warning: unused variable 'hsec' [-Wunused-variable] (#97)
  • Loading branch information
patacongo authored and Ouss4 committed Jan 14, 2020
1 parent f005698 commit 21ea255
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/devif/devif_poll.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 21ea255

Please sign in to comment.