diff options
author | Sverker Eriksson <[email protected]> | 2016-11-09 17:25:25 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2016-11-14 14:40:44 +0100 |
commit | e770c849d011d8d5872e5f1400d77c25a9268186 (patch) | |
tree | fea6ae49ae0041ed2bcdcc878eb68f1e79a4fbef /erts | |
parent | b41e8edf3b7076470c45233d30686dd8b0abc871 (diff) | |
download | otp-e770c849d011d8d5872e5f1400d77c25a9268186.tar.gz otp-e770c849d011d8d5872e5f1400d77c25a9268186.tar.bz2 otp-e770c849d011d8d5872e5f1400d77c25a9268186.zip |
erts: Add gcc compile error -Werror=undef
to get errors for "#if UNDEFINED_MACRO"
Diffstat (limited to 'erts')
-rw-r--r-- | erts/configure.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/erts/configure.in b/erts/configure.in index 4bff2ebf3d..fe340b34eb 100644 --- a/erts/configure.in +++ b/erts/configure.in @@ -533,6 +533,7 @@ if test "x$GCC" = xyes; then # Treat certain GCC warnings as errors LM_TRY_ENABLE_CFLAG([-Werror=return-type], [WERRORFLAGS]) LM_TRY_ENABLE_CFLAG([-Werror=implicit], [WERRORFLAGS]) + LM_TRY_ENABLE_CFLAG([-Werror=undef], [WERRORFLAGS]) # until the emulator can handle this, I suggest we turn it off! #WFLAGS="-Wall -Wshadow -Wcast-qual -Wmissing-declarations" |