diff options
author | Harald Welte <laforge@osmocom.org> | 2022-11-03 11:59:00 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2022-11-03 12:56:24 +0100 |
commit | 63eefabdde87df4dac9ed071df6535eed4f748c3 (patch) | |
tree | 9d82a7a26b24f7ac05bae1d4e8ceca78415ae240 | |
parent | 7a4765325d1f6accdbad3b74abddc2760f014c11 (diff) |
Add -Werror=implicit-int -Werror=int-conversion -Werror=old-style-definition
... if --enable-werror is used
Change-Id: Id465254bf12eb84acb116c86711a5b52b4d3ad35
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 8823288..78d0af9 100644 --- a/configure.ac +++ b/configure.ac @@ -93,6 +93,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" |