From: Willy Tarreau Date: Tue, 2 Jun 2015 12:01:20 +0000 (+0200) Subject: BUILD: fix build warning when not using 51degrees X-Git-Tag: v1.6-dev2~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9f4702390eefb59ddd548e11715f4be3a9d26a1;p=thirdparty%2Fhaproxy.git 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] --- diff --git a/src/haproxy.c b/src/haproxy.c index e04aa3f6a9..df48990c91 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();