diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 5792620f..23b80f07 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -81,16 +81,13 @@ jobs: - name: Configure shell: bash - # no -Werror during configuration because: - # warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic] - # warning: unused parameter [-Wunused-parameter] run: $CMAKE_EXE -G "${{matrix.GEN}}" -D BUILD_TESTING=ON -D BUILD_EXAMPLES=ON -D CMAKE_BUILD_TYPE=${{matrix.CONFIG}} - -D CMAKE_CXX_FLAGS="-Wall -Wextra -pedantic -m${{matrix.BIN}}" + -D CMAKE_CXX_FLAGS="-Werror -Wall -Wextra -pedantic -m${{matrix.BIN}}" -D CMAKE_CXX_COMPILER=g++-${{matrix.VER}} -D CMAKE_CXX_STANDARD=${{matrix.STD}} -D CMAKE_CXX_EXTENSIONS=${{matrix.EXT}} @@ -124,7 +121,7 @@ jobs: run: $CMAKE_EXE -G "${{matrix.GEN}}" -D CMAKE_BUILD_TYPE=${{matrix.CONFIG}} - -D CMAKE_CXX_FLAGS="-Wall -Wextra -pedantic -m${{matrix.BIN}}" + -D CMAKE_CXX_FLAGS="-Werror -Wall -Wextra -pedantic -m${{matrix.BIN}}" -D CMAKE_CXX_COMPILER=g++-${{matrix.VER}} -D CMAKE_CXX_STANDARD=${{matrix.STD}} -D CMAKE_CXX_EXTENSIONS=${{matrix.EXT}} @@ -143,7 +140,7 @@ jobs: $CMAKE_EXE -G "${{matrix.GEN}}" -D CMAKE_BUILD_TYPE=${{matrix.CONFIG}} - -D CMAKE_CXX_FLAGS="-Wall -Wextra -pedantic -m${{matrix.BIN}}" + -D CMAKE_CXX_FLAGS="-Werror -Wall -Wextra -pedantic -m${{matrix.BIN}}" -D CMAKE_CXX_COMPILER=g++-${{matrix.VER}} -D CMAKE_CXX_STANDARD=${{matrix.STD}} -D CMAKE_CXX_EXTENSIONS=${{matrix.EXT}} @@ -251,14 +248,11 @@ jobs: - name: Configure shell: bash - # no -Werror during configuration because: - # warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic] - # warning: unused parameter [-Wunused-parameter] run: $CMAKE_EXE -G "${{matrix.GEN}}" -D BUILD_TESTING=ON -D BUILD_EXAMPLES=ON - -D CMAKE_CXX_FLAGS="-Wall -Wextra -pedantic -m${{matrix.BIN}}" + -D CMAKE_CXX_FLAGS="-Werror -Wall -Wextra -pedantic -m${{matrix.BIN}}" -D CMAKE_CXX_COMPILER=g++-${{matrix.VER}} -D CMAKE_CXX_STANDARD=${{matrix.STD}} -D CMAKE_CXX_EXTENSIONS=${{matrix.EXT}} @@ -293,7 +287,7 @@ jobs: shell: bash run: $CMAKE_EXE -G "${{matrix.GEN}}" - -D CMAKE_CXX_FLAGS="-Wall -Wextra -pedantic -m${{matrix.BIN}}" + -D CMAKE_CXX_FLAGS="-Werror -Wall -Wextra -pedantic -m${{matrix.BIN}}" -D CMAKE_CXX_COMPILER=g++-${{matrix.VER}} -D CMAKE_CXX_STANDARD=${{matrix.STD}} -D CMAKE_CXX_EXTENSIONS=${{matrix.EXT}} @@ -312,7 +306,7 @@ jobs: echo -e "include(\"$GITHUB_WORKSPACE/external/OpenCL-Headers/install/share/cmake/OpenCLHeaders/OpenCLHeadersTargets.cmake\")\ninclude(\"$GITHUB_WORKSPACE/external/OpenCL-ICD-Loader/install/share/cmake/OpenCLICDLoader/OpenCLICDLoaderTargets.cmake\")\ninclude(\"\${CMAKE_CURRENT_LIST_DIR}/../OpenCLHeadersCpp/OpenCLHeadersCppTargets.cmake\")" > $GITHUB_WORKSPACE/install/share/cmake/OpenCL/OpenCLConfig.cmake ; $CMAKE_EXE -G "${{matrix.GEN}}" - -D CMAKE_CXX_FLAGS="-Wall -Wextra -pedantic -m${{matrix.BIN}}" + -D CMAKE_CXX_FLAGS="-Werror -Wall -Wextra -pedantic -m${{matrix.BIN}}" -D CMAKE_CXX_COMPILER=g++-${{matrix.VER}} -D CMAKE_CXX_STANDARD=${{matrix.STD}} -D CMAKE_CXX_EXTENSIONS=${{matrix.EXT}}