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.
This commit is contained in:
Willy Tarreau 2015-02-27 16:34:50 +01:00
parent 188ad3e9a2
commit 713a7566af

View File

@ -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