diff options
author | Harald Welte <laforge@osmocom.org> | 2022-11-03 11:53:35 +0100 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2022-11-08 16:30:58 +0000 |
commit | 88bb5ed7fa67cd7917066843ed487841e84d5087 (patch) | |
tree | 71bb9e45e20e28c6776f19ef33501b20db3f0b5a | |
parent | 8d5fc1db44ee18d2881c461cc6ebdc650468ad8c (diff) |
Add -Werror=implicit-int -Werror=int-conversion -Werror=old-style-definition
... if --enable-werror is used
Change-Id: I8acd1b276f1ff8f015856d70fd582e457915ea11
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 26a657ea..63cd7a9d 100644 --- a/configure.ac +++ b/configure.ac @@ -426,6 +426,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" |