]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CI/macos: enable warnings as errors for CMake builds
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Sun, 19 Jul 2020 09:50:43 +0000 (11:50 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Sat, 25 Jul 2020 06:51:11 +0000 (08:51 +0200)
Closes https://github.com/curl/curl/pull/5716

.github/workflows/macos.yml

index 4a84b25570746cb0e2c1e8d4b7acac78048accd1..3092d4bc1592a10c353d0262dd80b7f8113beeaf 100644 (file)
@@ -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