From 94e7cd90feb6af51b7e21d5289dc0edc1ba94a99 Mon Sep 17 00:00:00 2001 From: Denis Ovsienko Date: Wed, 7 Dec 2011 01:35:11 +0400 Subject: Revert "lib: address -Wunused-but-set-variable" Stephen Hemminger's commits contain all the changes and several other warning fixes. This reverts commit 6947dbebdc91b6272f8107a6e0dd211457438606. --- lib/if.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/if.c') diff --git a/lib/if.c b/lib/if.c index 41115b0f..d14cfb93 100644 --- a/lib/if.c +++ b/lib/if.c @@ -426,6 +426,9 @@ if_flag_dump (unsigned long flag) static void if_dump (const struct interface *ifp) { + struct listnode *node; + struct connected *c; + zlog_info ("Interface %s index %d metric %d mtu %d " #ifdef HAVE_IPV6 "mtu6 %d " @@ -436,6 +439,9 @@ if_dump (const struct interface *ifp) ifp->mtu6, #endif /* HAVE_IPV6 */ if_flag_dump (ifp->flags)); + + for (ALL_LIST_ELEMENTS_RO (ifp->connected, node, c)) + ; } /* Interface printing for all interface. */ -- cgit v1.2.3