]> granicus.if.org Git - graphviz/commitdiff
make compiler warnings for CMake Linux/macOS builds fail CI smattr/DF679B9B-496A-45B6-B14B-856D8DD8212B
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 31 Oct 2020 03:20:41 +0000 (20:20 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 31 Oct 2020 03:35:18 +0000 (20:35 -0700)
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

index b8c7b62672fd9b7d4b7808c8fb001301cc90af12..4a74576d407c8c6fd9d15743562b125455f887f3 100644 (file)
@@ -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