From 7029d2c168cb49d3b9552f505a00cc7f538bc100 Mon Sep 17 00:00:00 2001 From: Mathias Preiner Date: Mon, 1 Mar 2021 10:36:58 -0800 Subject: [PATCH] Make -Werror optional but enable it for CI. (#6032) --- .github/workflows/ci.yml | 3 ++- CMakeLists.txt | 1 - configure.sh | 9 +++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fd6b65998..abd47ec97 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -155,7 +155,8 @@ jobs: run: | ${{ matrix.env }} ./configure.sh ${{ matrix.config }} \ --prefix=$(pwd)/build/install \ - --unit-testing + --unit-testing \ + --werror - name: Build run: make -j2 diff --git a/CMakeLists.txt b/CMakeLists.txt index c32c10f4d..b48974cc3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -234,7 +234,6 @@ include(Config${CMAKE_BUILD_TYPE}) add_check_c_cxx_flag("-O${OPTIMIZATION_LEVEL}") add_check_c_cxx_flag("-Wall") -add_check_c_cxx_flag("-Werror") add_check_c_cxx_flag("-Wno-unused-private-field") add_check_c_flag("-fexceptions") add_check_cxx_flag("-Wsuggest-override") diff --git a/configure.sh b/configure.sh index 419d66ea8..1e036e548 100755 --- a/configure.sh +++ b/configure.sh @@ -51,6 +51,7 @@ The following flags enable optional features (disable with --no-