diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 42555e7e..bc9c33ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -193,6 +193,7 @@ jobs: run: | cmake \ -DCMAKE_BUILD_TYPE=${{ env.CMAKE_CONFIG }} \ + -DCMAKE_COMPILE_WARNING_AS_ERROR=ON \ -DCPACK_PACKAGE_VERSION="${{ steps.get-libloot-version.outputs.version }}" \ -DCPACK_THREADS=0 \ -DRUST_TARGET="${{ matrix.target.triple }}" \ @@ -205,6 +206,7 @@ jobs: run: | cmake -G "Visual Studio 17 2022" ` -A ${{ matrix.target.platform }} ` + -DCMAKE_COMPILE_WARNING_AS_ERROR=ON ` -DCPACK_PACKAGE_VERSION="${{ steps.get-libloot-version.outputs.version }}" ` -DCPACK_THREADS=0 ` -DRUST_TARGET="${{ matrix.target.triple }}" ` diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 07aa1c58..13e5b2f6 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -181,7 +181,6 @@ endif() if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang") target_compile_options(loot PRIVATE - "-Werror" "-Wall" "-Wextra" "-Wpedantic" @@ -211,7 +210,6 @@ if(MSVC) "/permissive-" "/W4" "/Wall" - "/WX" "/wd4514" "/wd4623" "/wd4625"