From: Stephen Hemminger Date: Tue, 6 Dec 2011 21:29:49 +0000 (+0400) Subject: lib: fix compile warnings from set-never-used X-Git-Tag: frr-2.0-rc1~1978 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=3c14ebb0810e73ad899ae45e5fb2758153057e0e;p=mirror%2Ffrr.git lib: fix compile warnings from set-never-used The if_dump code had empty loop, that caused set-never-used warning. --- diff --git a/lib/if.c b/lib/if.c index 86f754b6b3..31c60e3fe8 100644 --- a/lib/if.c +++ b/lib/if.c @@ -426,9 +426,6 @@ 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 " @@ -439,9 +436,6 @@ 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. */