From a9f4702390eefb59ddd548e11715f4be3a9d26a1 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 2 Jun 2015 14:01:20 +0200 Subject: [PATCH] BUILD: fix build warning when not using 51degrees An ifdef was missing to avoid declaring these variables : src/haproxy.c: In function 'deinit': src/haproxy.c:1253:47: warning: unused variable '_51d_prop_nameb' [-Wunused-variable] src/haproxy.c:1253:30: warning: unused variable '_51d_prop_name' [-Wunused-variable] --- src/haproxy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/haproxy.c b/src/haproxy.c index e04aa3f6a..df48990c9 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -1250,7 +1250,9 @@ void deinit(void) struct logsrv *log, *logb; struct logformat_node *lf, *lfb; struct bind_conf *bind_conf, *bind_back; +#ifdef USE_51DEGREES struct _51d_property_names *_51d_prop_name, *_51d_prop_nameb; +#endif int i; deinit_signals();