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"