From 5806b2faf668b9bba6d517474d905715d12b331b Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Mon, 23 Dec 2024 19:48:50 +0100 Subject: [PATCH] libvisual/configure.ac: Add -Werror on CI=true --- libvisual/configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libvisual/configure.ac b/libvisual/configure.ac index accd6915..67658d87 100644 --- a/libvisual/configure.ac +++ b/libvisual/configure.ac @@ -520,6 +520,12 @@ OPT_CFLAGS="-mwindows" fi AC_SUBST(OPT_CFLAGS) +AS_IF([test "x${CI}" = xtrue], [ + CFLAGS="${CFLAGS} -Werror" + CFLAGS="${CFLAGS} -Wno-error=uninitialized" # TODO: drop line after fixing! + CFLAGS="${CFLAGS} -Wno-error=unused-function" # TODO: drop line after fixing! +]) + AC_SUBST(CFLAGS, "${CFLAGS} ${DEBUG_CFLAGS} ${OPT_CFLAGS}") libs_dynamic_loader="-ldl"