From: Marcel Raad Date: Sun, 19 Jul 2020 09:50:43 +0000 (+0200) Subject: CI/macos: enable warnings as errors for CMake builds X-Git-Tag: curl-7_72_0~88 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=05904db8615e94a5b61809a1afe3e22cdbd50f43;p=thirdparty%2Fcurl.git CI/macos: enable warnings as errors for CMake builds Closes https://github.com/curl/curl/pull/5716 --- diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 4a84b25570..3092d4bc15 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -81,8 +81,10 @@ jobs: CXX: clang++ - CC: gcc-8 CXX: g++-8 + CFLAGS: "-Wno-error=undef -Wno-error=conversion" - CC: gcc-9 CXX: g++-9 + CFLAGS: "-Wno-error=undef -Wno-error=conversion" build: - name: OpenSSL install: nghttp2 openssl @@ -99,7 +101,7 @@ jobs: - uses: actions/checkout@v2 - - run: cmake -H. -Bbuild ${{ matrix.build.generate }} + - run: cmake -H. -Bbuild -DCURL_WERROR=ON -DPICKY_COMPILER=ON ${{ matrix.build.generate }} name: 'cmake generate' - run: cmake --build build