summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2022-11-05 19:25:07 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2022-11-05 19:25:07 +0700
commit6df5177127cf9a6bf0d613d9cd288feeec1601ef (patch)
treea4efcee99ced3427ed0cd7abc863465188a3b75b
parent136cf481c715de6f1e302704bdebed0f25e90d4e (diff)
osmocon: add -Werror={implicit-int,int-conversion,old-style-definition}
-rw-r--r--src/host/osmocon/configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/host/osmocon/configure.ac b/src/host/osmocon/configure.ac
index 7fa26925..556f60ba 100644
--- a/src/host/osmocon/configure.ac
+++ b/src/host/osmocon/configure.ac
@@ -42,6 +42,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"