From: Willy Tarreau Date: Fri, 27 Feb 2015 15:34:50 +0000 (+0100) Subject: BUILD: Makefile: add -Wdeclaration-after-statement X-Git-Tag: v1.6-dev1~127 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=713a7566afc753e488c8573fe6b1cc4694b5abbd;p=thirdparty%2Fhaproxy.git BUILD: Makefile: add -Wdeclaration-after-statement This one makes it easier to detect accidentally misplaced variables declarations in the code which are always a pain to deal with when functions grow. --- diff --git a/Makefile b/Makefile index 620a2bedc1..052c0821ae 100644 --- a/Makefile +++ b/Makefile @@ -118,7 +118,7 @@ DEBUG_CFLAGS = -g #### Compiler-specific flags that may be used to disable some negative over- # optimization or to silence some warnings. -fno-strict-aliasing is needed with # gcc >= 4.4. -SPEC_CFLAGS = -fno-strict-aliasing +SPEC_CFLAGS = -fno-strict-aliasing -Wdeclaration-after-statement #### Memory usage tuning # If small memory footprint is required, you can reduce the buffer size. There