Add -Werror=implicit-int -Werror=int-conversion -Werror=old-style-definition
... if --enable-werror is used Change-Id: If344ef88121111db5365b8cee3cf3cd1283303c1
This commit is contained in:
parent
71fc322431
commit
2ce7b758e3
|
@ -77,6 +77,7 @@ if test x"$werror" = x"yes"
|
||||||
then
|
then
|
||||||
WERROR_FLAGS="-Werror"
|
WERROR_FLAGS="-Werror"
|
||||||
WERROR_FLAGS+=" -Wno-error=deprecated -Wno-error=deprecated-declarations"
|
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"
|
WERROR_FLAGS+=" -Wno-error=cpp" # "#warning"
|
||||||
CFLAGS="$CFLAGS $WERROR_FLAGS"
|
CFLAGS="$CFLAGS $WERROR_FLAGS"
|
||||||
CPPFLAGS="$CPPFLAGS $WERROR_FLAGS"
|
CPPFLAGS="$CPPFLAGS $WERROR_FLAGS"
|
||||||
|
|
Loading…
Reference in New Issue