You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2020/01/14 02:11:51 UTC

[incubator-nuttx] branch pr97 updated: 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 is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch pr97
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/pr97 by this push:
     new 21ea255  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)
21ea255 is described below

commit 21ea255ea4ac33f793af7b7c9948a3878f8be799
Author: patacongo <sp...@yahoo.com>
AuthorDate: Mon Jan 13 20:11:43 2020 -0600

    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 75b0ff2..7c4fd04 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