Add -Werror=implicit-int -Werror=int-conversion -Werror=old-style-definition

... if --enable-werror is used

Change-Id: I8acd1b276f1ff8f015856d70fd582e457915ea11
This commit is contained in:
Harald Welte 2022-11-03 11:53:35 +01:00
parent b4dc159212
commit 3bfe6801a9
1 changed files with 1 additions and 0 deletions

View File

@ -427,6 +427,7 @@ if test x"$werror" = x"yes"
then
WERROR_FLAGS="-Werror"
WERROR_FLAGS+=" -Wno-error=deprecated -Wno-error=deprecated-declarations"
WERROR_FLAGS+=" -Werror=implicit-int -Werror=int-conversion -Werror=old-style-definition"
WERROR_FLAGS+=" -Wno-error=cpp" # "#warning"
CFLAGS="$CFLAGS $WERROR_FLAGS"
CPPFLAGS="$CPPFLAGS $WERROR_FLAGS"