From 713a7566afc753e488c8573fe6b1cc4694b5abbd Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 27 Feb 2015 16:34:50 +0100 Subject: [PATCH] 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. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 620a2bedc..052c0821a 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