]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Turn warnings to errors in CI, and turn on several new checks werror
authorHans Kristian Rosbach <hk-git@circlestorm.org>
Mon, 23 Dec 2024 13:44:37 +0000 (14:44 +0100)
committerHans Kristian Rosbach <hk-git@circlestorm.org>
Thu, 26 Dec 2024 18:38:34 +0000 (19:38 +0100)
.github/workflows/cmake.yml

index 02f98272ed9105b51faccc12ac2087e9dd352fc0..f78feea6e98ae36d96e7c8429ae69abace35e7ba 100644 (file)
@@ -683,7 +683,7 @@ jobs:
       env:
         CC: ${{ matrix.compiler }}
         CXX: ${{ matrix.cxx-compiler }}
-        CFLAGS: ${{ matrix.cflags }}
+        CFLAGS: ${{ matrix.cflags }} ${{ runner.os != 'Windows' && '-Werror -Wall -Wextra -Wabi=11 -Wshadow -Wimplicit-function-declaration -Wno-discarded-qualifiers -Wcast-align -Wformat-security -Winit-self -Wlogical-op -Wnull-dereference -Wwrite-strings' || ''}}
         LDFLAGS: ${{ matrix.ldflags }}
         CI: true