From 21ea255ea4ac33f793af7b7c9948a3878f8be799 Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 13 Jan 2020 20:11:43 -0600 Subject: [PATCH] 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) --- net/devif/devif_poll.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/devif/devif_poll.c b/net/devif/devif_poll.c index 75b0ff287e..7c4fd045b2 100644 --- a/net/devif/devif_poll.c +++ b/net/devif/devif_poll.c @@ -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