diff options
| author | Mark Adler <git@madler.net> | 2026-01-06 12:55:54 -0600 |
|---|---|---|
| committer | Mark Adler <git@madler.net> | 2026-01-06 12:59:17 -0600 |
| commit | f81690699aec9afb718a14a801889969544b74b6 (patch) | |
| tree | 487d1fb4e6ecffe1ab06c949b78f69bd6de92aa5 | |
| parent | 42ca9c2c9b010c8c9b278079c98bf7aadb074e69 (diff) | |
| download | zlib-f81690699aec9afb718a14a801889969544b74b6.tar.gz zlib-f81690699aec9afb718a14a801889969544b74b6.tar.bz2 zlib-f81690699aec9afb718a14a801889969544b74b6.zip | |
Add compiler options to standards in c-std.yml for ZLIB_INSECURE.
| -rw-r--r-- | .github/workflows/c-std.yml | 9 |
1 files changed, 3 insertions, 6 deletions
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: | |||
| 51 | - name: c89 | 51 | - name: c89 |
| 52 | value: c89 | 52 | value: c89 |
| 53 | compiler-opt: -DZIP_INSECURE | 53 | compiler-opt: -DZIP_INSECURE |
| 54 | cmake-opt: -DZIP_INSECURE | ||
| 55 | 54 | ||
| 56 | - name: gnu89 | 55 | - name: gnu89 |
| 57 | value: gnu89 | 56 | value: gnu89 |
| 58 | compiler-opt: -DZIP_INSECURE | 57 | compiler-opt: -DZIP_INSECURE |
| 59 | cmake-opt: -DZIP_INSECURE | ||
| 60 | 58 | ||
| 61 | - name: c94 | 59 | - name: c94 |
| 62 | value: iso9899:199409 | 60 | value: iso9899:199409 |
| 63 | compiler-opt: -DZIP_INSECURE | 61 | compiler-opt: -DZIP_INSECURE |
| 64 | cmake-opt: -DZIP_INSECURE | ||
| 65 | 62 | ||
| 66 | - name: c99 | 63 | - name: c99 |
| 67 | value: c99 | 64 | value: c99 |
| @@ -124,7 +121,7 @@ jobs: | |||
| 124 | ./configure | 121 | ./configure |
| 125 | env: | 122 | env: |
| 126 | CC: ${{ matrix.compiler }} | 123 | CC: ${{ matrix.compiler }} |
| 127 | CFLAGS: -std=${{ matrix.std.value }} ${{ matrix.arch.compiler-opt }} -Werror -Wall -Wextra | 124 | CFLAGS: -std=${{ matrix.std.value }} ${{ matrix.std.compiler-opt }} ${{ matrix.arch.compiler-opt }} -Werror -Wall -Wextra |
| 128 | 125 | ||
| 129 | - name: Compile source code (configure) | 126 | - name: Compile source code (configure) |
| 130 | if: matrix.builder == 'configure' | 127 | if: matrix.builder == 'configure' |
| @@ -142,7 +139,7 @@ jobs: | |||
| 142 | cmake -S . -B ./build1 -D CMAKE_BUILD_TYPE=Release ${{ matrix.os.cmake-opt }} -DZLIB_BUILD_TESTING=OFF | 139 | cmake -S . -B ./build1 -D CMAKE_BUILD_TYPE=Release ${{ matrix.os.cmake-opt }} -DZLIB_BUILD_TESTING=OFF |
| 143 | env: | 140 | env: |
| 144 | CC: ${{ matrix.compiler }} | 141 | CC: ${{ matrix.compiler }} |
| 145 | CFLAGS: -std=${{ matrix.std.value }} ${{ matrix.arch.compiler-opt }} -Werror -Wall -Wextra | 142 | CFLAGS: -std=${{ matrix.std.value }} ${{ matrix.std.compiler-opt }} ${{ matrix.arch.compiler-opt }} -Werror -Wall -Wextra |
| 146 | 143 | ||
| 147 | - name: Generate project files with tests (cmake) | 144 | - name: Generate project files with tests (cmake) |
| 148 | if: matrix.builder == 'cmake' | 145 | if: matrix.builder == 'cmake' |
| @@ -150,7 +147,7 @@ jobs: | |||
| 150 | cmake -S . -B ./build2 -D CMAKE_BUILD_TYPE=Release ${{ matrix.os.cmake-opt }} -DZLIB_BUILD_MINIZIP=ON -DMINIZIP_ENABLE_BZIP2=OFF | 147 | cmake -S . -B ./build2 -D CMAKE_BUILD_TYPE=Release ${{ matrix.os.cmake-opt }} -DZLIB_BUILD_MINIZIP=ON -DMINIZIP_ENABLE_BZIP2=OFF |
| 151 | env: | 148 | env: |
| 152 | CC: ${{ matrix.compiler }} | 149 | CC: ${{ matrix.compiler }} |
| 153 | CFLAGS: -std=${{ matrix.std.value }} ${{ matrix.arch.compiler-opt }} -Wall -Wextra | 150 | CFLAGS: -std=${{ matrix.std.value }} ${{ matrix.std.compiler-opt }} ${{ matrix.arch.compiler-opt }} -Wall -Wextra |
| 154 | 151 | ||
| 155 | - name: Compile source code (cmake) | 152 | - name: Compile source code (cmake) |
| 156 | if: matrix.builder == 'cmake' | 153 | if: matrix.builder == 'cmake' |
