From c4916eee2fda5719c7643d206a7824fb4aa76bbd Mon Sep 17 00:00:00 2001 From: Hannes Gredler Date: Mon, 28 Apr 2008 21:07:47 +0200 Subject: [PATCH] squelch a compiler warning when the debugging code is #ifdef'ed out --- src/lq_plugin.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lq_plugin.c b/src/lq_plugin.c index 8c0da050..f4b03ee4 100644 --- a/src/lq_plugin.c +++ b/src/lq_plugin.c @@ -90,11 +90,12 @@ void set_lq_handler(struct lq_handler *handler, const char *name) { if (handler) { OLSR_PRINTF(1, "Activated lq_handler: %s\n", name); active_lq_handler = handler; - } - else { + } else { OLSR_PRINTF(1, "Activated lq_handler: default\n"); active_lq_handler = &default_lq_handler; } + + name = NULL; /* squelch compiler warning */ } /* -- 2.20.1