mirror of https://gerrit.osmocom.org/libosmocore
Add -Werror=implicit-int -Werror=int-conversion -Werror=old-style-definition
... if --enable-werror is used Change-Id: I8acd1b276f1ff8f015856d70fd582e457915ea11
This commit is contained in:
parent
8d5fc1db44
commit
88bb5ed7fa
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue