From d6478b22a6055a5cf52ebd5822867228f6c7fb4c Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 30 Oct 2020 20:20:41 -0700 Subject: [PATCH] make compiler warnings for CMake Linux/macOS builds fail CI Now that these builds are warning-free, we can "turn the ratchet" to demand they stay warning-free or constitute a regression. --- .gitlab-ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b8c7b6267..4a74576d4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -268,6 +268,9 @@ ubuntu18-04-cmake-build: <<: *deb_build_definition before_script: - export build_system="cmake" + # fail on any compiler warnings + - export CFLAGS=-Werror + - export CXXFLAGS=-Werror - echo experimental > COLLECTION tags: - linux @@ -277,6 +280,9 @@ centos7-cmake-build: <<: *rpm_build_definition before_script: - export build_system="cmake" + # fail on any compiler warnings + - export CFLAGS=-Werror + - export CXXFLAGS=-Werror - echo experimental > COLLECTION tags: - linux @@ -286,6 +292,9 @@ fedora31-cmake-build: <<: *rpm_build_definition before_script: - export build_system="cmake" + # fail on any compiler warnings + - export CFLAGS=-Werror + - export CXXFLAGS=-Werror - echo experimental > COLLECTION tags: - linux @@ -295,6 +304,9 @@ macos-cmake-build: <<: *macos_build_definition before_script: - export build_system="cmake" + # fail on any compiler warnings + - export CFLAGS=-Werror + - export CXXFLAGS=-Werror tags: - macos -- 2.40.0