From da4997b2cc2f1609267ac06ffdb4b0b5df02f981 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libvisual/configure.ac b/libvisual/configure.ac index accd6915..45bf3a7c 100644 --- a/libvisual/configure.ac +++ b/libvisual/configure.ac @@ -520,6 +520,16 @@ OPT_CFLAGS="-mwindows" fi AC_SUBST(OPT_CFLAGS) +AS_IF([test "x${CI}" = xtrue], [ + CFLAGS="${CFLAGS} -Werror" + CFLAGS="${CFLAGS} -Wno-error=maybe-uninitialized" # TODO: drop line after fixing! + CFLAGS="${CFLAGS} -Wno-error=missing-prototypes" # TODO: drop line after fixing! + CFLAGS="${CFLAGS} -Wno-error=return-type" # TODO: drop line after fixing! + CFLAGS="${CFLAGS} -Wno-error=uninitialized" # TODO: drop line after fixing! + CFLAGS="${CFLAGS} -Wno-error=unknown-warning-option" # 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"