From 05904db8615e94a5b61809a1afe3e22cdbd50f43 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Sun, 19 Jul 2020 11:50:43 +0200 Subject: CI/macos: enable warnings as errors for CMake builds Closes https://github.com/curl/curl/pull/5716 --- .github/workflows/macos.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 4a84b2557..3092d4bc1 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 -- cgit v1.2.1