diff options
author | Harald Welte <laforge@osmocom.org> | 2022-11-03 11:55:53 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2022-11-03 12:43:00 +0100 |
commit | 990c1989c07d106e45d4336fa3feb1309b7c91e1 (patch) | |
tree | ff171e67a2b5c154c7ca9eece1049e85b2f0fb3b /configure.ac | |
parent | c9b46a1c34a6c3efe6882891df7282b37fe52a12 (diff) |
Add -Werror=implicit-int -Werror=int-conversion -Werror=old-style-definition
... if --enable-werror is used
Change-Id: I8e6cdc40cb77777677e5ffbbf3bf9e5c32555b2c
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 1b8436e..ba7ff86 100644 --- a/configure.ac +++ b/configure.ac @@ -68,6 +68,7 @@ AC_ARG_ENABLE(werror, if test x"$werror" = x"yes" then WERROR_FLAGS="-Werror" + WERROR_FLAGS+=" -Werror=implicit-int -Werror=int-conversion -Werror=old-style-definition" WERROR_FLAGS+=" -Wno-error=deprecated -Wno-error=deprecated-declarations" WERROR_FLAGS+=" -Wno-error=cpp" # "#warning" CFLAGS="$CFLAGS $WERROR_FLAGS" |