aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2022-11-03 11:55:01 +0100
committerHarald Welte <laforge@osmocom.org>2023-06-13 08:59:00 +0200
commit4f19586fce16617e8f62968eab5bfeddd09ed9b1 (patch)
tree39dcf0f78f81305fe21bbd981e554ba20f384b1d
parentd455f9e60a07a9a0007caf1cd101369ad91f46aa (diff)
Add -Werror=implicit-int -Werror=int-conversion -Werror=old-style-definition
... if --enable-werror is used Change-Id: Icee84b6727f0242e7b2004214183c2389a0bb604
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 5763a74..5797a83 100644
--- a/configure.ac
+++ b/configure.ac
@@ -62,6 +62,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"