aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2022-11-03 11:58:36 +0100
committerHarald Welte <laforge@osmocom.org>2022-11-03 11:58:36 +0100
commit2ce7b758e34997002c2ff07a2d6d42362a13801c (patch)
tree94ae491349489e2d6af95b792e70b03810398693
parent71fc3224314dad9aa5d4c204c199e75f715f0801 (diff)
Add -Werror=implicit-int -Werror=int-conversion -Werror=old-style-definition
... if --enable-werror is used Change-Id: If344ef88121111db5365b8cee3cf3cd1283303c1
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index fe9f614..98f1799 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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"