From d838b6d1af77c406ff0512ed15e7f38fe4a98f07 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 20 Nov 2021 08:05:22 -0800 Subject: [PATCH] fail MinGW CMake CI jobs on any compiler warning As of the prior commit, these builds are warning free. --- .gitlab-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7b67af9a4..62def282c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -801,6 +801,9 @@ windows-mingw32-cmake-build: - choco config set cacheLocation choco-cache - choco install --yes --no-progress msys2 - $Env:build_system = "cmake" + # fail on any compiler warnings + - $Env:CFLAGS = "-Werror" + - $Env:CXXFLAGS = "-Werror" - C:\tools\msys64\usr\bin\env MSYSTEM=MINGW32 C:\tools\msys64\usr\bin\bash -l -c 'cd $CI_PROJECT_DIR && ci/mingw-build.sh' artifacts: when: always @@ -824,6 +827,9 @@ windows-mingw64-cmake-build: - choco config set cacheLocation choco-cache - choco install --yes --no-progress msys2 - $Env:build_system = "cmake" + # fail on any compiler warnings + - $Env:CFLAGS = "-Werror" + - $Env:CXXFLAGS = "-Werror" - C:\tools\msys64\usr\bin\env MSYSTEM=MINGW64 C:\tools\msys64\usr\bin\bash -l -c 'cd $CI_PROJECT_DIR && ci/mingw-build.sh' artifacts: when: always -- 2.40.0