From 33f6ff5d898d8d720c00dea28cd0e6f5e9d84e70 Mon Sep 17 00:00:00 2001 From: pmqs Date: Sun, 16 Jun 2024 12:31:24 +0100 Subject: [PATCH] add no-error=deprecatedfor clang++ --- .github/workflows/macos.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 599ca8c..533fdbe 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -70,14 +70,17 @@ jobs: - latest compiler: - - clang - - clang++ + - name: clang + werror: -Werror + + - name: clang++ + werror: -Werror -Wno-error=deprecated build-zlib: - 0 - 1 - name: Perl ${{ matrix.perl }} BUILD_ZLIB:${{matrix.build-zlib}} ${{matrix.compiler}} + name: Perl ${{ matrix.perl }} BUILD_ZLIB:${{matrix.build-zlib}} ${{matrix.compiler.name}} steps: - uses: actions/checkout@v4 @@ -95,7 +98,7 @@ jobs: - name: Build run: | flags=$( perl -MConfig -e 'print $Config::Config{ccflags}' ) - perl Makefile.PL CCFLAGS="$flags -Werror" CC=${{matrix.compiler}} && make + perl Makefile.PL CCFLAGS="$flags ${{matrix.compiler.werror}} " CC=${{matrix.compiler.name}} && make env: BUILD_ZLIB: ${{matrix.build-zlib}}