From f81690699aec9afb718a14a801889969544b74b6 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Tue, 6 Jan 2026 12:55:54 -0600 Subject: Add compiler options to standards in c-std.yml for ZLIB_INSECURE. --- .github/workflows/c-std.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/c-std.yml b/.github/workflows/c-std.yml index 150cb91e..f6d682c8 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' -- cgit v1.2.3-55-g6feb