Add -Werror=implicit-int -Werror=int-conversion -Werror=old-style-definition
... if --enable-werror is used Change-Id: I42f0ef1c9eea62a2512a15543ff45d776155fdc5
This commit is contained in:
parent
a53391d885
commit
c3e797b87c
|
@ -74,6 +74,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"
|
||||
|
|
Loading…
Reference in New Issue