Commit f816906 for zlib
commit f81690699aec9afb718a14a801889969544b74b6
Author: Mark Adler <git@madler.net>
Date: Tue Jan 6 12:55:54 2026 -0600
Add compiler options to standards in c-std.yml for ZLIB_INSECURE.
diff --git a/.github/workflows/c-std.yml b/.github/workflows/c-std.yml
index 150cb91..f6d682c 100644
--- a/.github/workflows/c-std.yml
+++ b/.github/workflows/c-std.yml
@@ -51,17 +51,14 @@ jobs:
- name: c89
value: c89
compiler-opt: -DZIP_INSECURE
- cmake-opt: -DZIP_INSECURE
- name: gnu89
value: gnu89
compiler-opt: -DZIP_INSECURE
- cmake-opt: -DZIP_INSECURE
- name: c94
value: iso9899:199409
compiler-opt: -DZIP_INSECURE
- cmake-opt: -DZIP_INSECURE
- name: c99
value: c99
@@ -124,7 +121,7 @@ jobs:
./configure
env:
CC: ${{ matrix.compiler }}
- CFLAGS: -std=${{ matrix.std.value }} ${{ matrix.arch.compiler-opt }} -Werror -Wall -Wextra
+ CFLAGS: -std=${{ matrix.std.value }} ${{ matrix.std.compiler-opt }} ${{ matrix.arch.compiler-opt }} -Werror -Wall -Wextra
- name: Compile source code (configure)
if: matrix.builder == 'configure'
@@ -142,7 +139,7 @@ jobs:
cmake -S . -B ./build1 -D CMAKE_BUILD_TYPE=Release ${{ matrix.os.cmake-opt }} -DZLIB_BUILD_TESTING=OFF
env:
CC: ${{ matrix.compiler }}
- CFLAGS: -std=${{ matrix.std.value }} ${{ matrix.arch.compiler-opt }} -Werror -Wall -Wextra
+ CFLAGS: -std=${{ matrix.std.value }} ${{ matrix.std.compiler-opt }} ${{ matrix.arch.compiler-opt }} -Werror -Wall -Wextra
- name: Generate project files with tests (cmake)
if: matrix.builder == 'cmake'
@@ -150,7 +147,7 @@ jobs:
cmake -S . -B ./build2 -D CMAKE_BUILD_TYPE=Release ${{ matrix.os.cmake-opt }} -DZLIB_BUILD_MINIZIP=ON -DMINIZIP_ENABLE_BZIP2=OFF
env:
CC: ${{ matrix.compiler }}
- CFLAGS: -std=${{ matrix.std.value }} ${{ matrix.arch.compiler-opt }} -Wall -Wextra
+ CFLAGS: -std=${{ matrix.std.value }} ${{ matrix.std.compiler-opt }} ${{ matrix.arch.compiler-opt }} -Wall -Wextra
- name: Compile source code (cmake)
if: matrix.builder == 'cmake'