From: Mathias Preiner Date: Mon, 1 Mar 2021 18:36:58 +0000 (-0800) Subject: Make -Werror optional but enable it for CI. (#6032) X-Git-Tag: cvc5-1.0.0~2179 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7029d2c168cb49d3b9552f505a00cc7f538bc100;p=cvc5.git Make -Werror optional but enable it for CI. (#6032) --- 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-