]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: fix build warning when not using 51degrees
authorWilly Tarreau <w@1wt.eu>
Tue, 2 Jun 2015 12:01:20 +0000 (14:01 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 2 Jun 2015 17:30:59 +0000 (19:30 +0200)
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

index e04aa3f6a968d830726b0b54696af0ebeece8fa5..df48990c91455f06c3f3d19295cb5629ec01cff4 100644 (file)
@@ -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();