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

... if --enable-werror is used

Change-Id: If344ef88121111db5365b8cee3cf3cd1283303c1
This commit is contained in:
Harald Welte 2022-11-03 11:58:36 +01:00
parent 71fc322431
commit 2ce7b758e3
1 changed files with 1 additions and 0 deletions

View File

@ -77,6 +77,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"