mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-26 15:33:00 +00:00
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:
parent
188ad3e9a2
commit
713a7566af
2
Makefile
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user