build: Use -Wundef when possible
This allows us to catch the use of undefined macros (that default to 0) in preprocessor conditionals. (cherry picked from commit 53ddc20fe9cd1400d18274e521932f84a4aecc5b)
This commit is contained in:
parent
3289fe03e8
commit
f51f2459ac
@ -310,7 +310,7 @@ AC_ARG_ENABLE(
|
||||
|
||||
MAINTAINER_COMPILER_FLAGS="-Wall -Wcast-align -Wuninitialized
|
||||
-Wno-strict-aliasing -Wempty-body -Wformat
|
||||
-Wformat-security -Winit-self
|
||||
-Wformat-security -Winit-self -Wundef
|
||||
-Wdeclaration-after-statement -Wvla
|
||||
-Wpointer-arith -Wmissing-declarations"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user