Make: break directly on compile warning

This commit is contained in:
Olof hagsand 2025-01-23 12:21:12 +01:00
parent 2831be4153
commit 2d709378f7
4 changed files with 21 additions and 7 deletions

View file

@ -67,10 +67,10 @@ AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug],[Build with debug symbols,
AC_MSG_RESULT(debug is $ac_enable_debug)
if test "$ac_enable_debug" = "yes"; then
: ${CFLAGS="-g -Wall"}
: ${CFLAGS="-g -Wall -Werror"}
INSTALLFLAGS=""
else
: ${CFLAGS="-O2 -Wall"}
: ${CFLAGS="-O2 -Wall -Werror"}
fi
AC_CONFIG_HEADERS([include/clixon_config.h lib/clixon/clixon.h])