From 8a78ceea7b17246a8a9b7e48e8cae1c6bee59af2 Mon Sep 17 00:00:00 2001 From: Dirk Farin Date: Mon, 16 Sep 2024 09:50:29 +0200 Subject: [PATCH] turn on warning-as-error on CI builds --- scripts/run-ci.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/run-ci.sh b/scripts/run-ci.sh index b2a5b267e5..b69050cdee 100755 --- a/scripts/run-ci.sh +++ b/scripts/run-ci.sh @@ -145,6 +145,9 @@ echo "install prefix: ${BUILD_ROOT}/dist" mkdir ${BUILD_ROOT}/dist CMAKE_OPTIONS="$CMAKE_OPTIONS -DCMAKE_INSTALL_PREFIX=${BUILD_ROOT}/dist" +# turn on warnings-as-errors +CMAKE_OPTIONS="$CMAKE_OPTIONS -DCMAKE_COMPILE_WARNING_AS_ERROR=1" + if [ ! -z "$FUZZER" ] && [ "$CURRENT_OS" = "linux" ]; then export ASAN_SYMBOLIZER="$BUILD_ROOT/clang/bin/llvm-symbolizer"