Skip to content

Commit

Permalink
try enabling Linux warnings as errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbaug committed Aug 23, 2023
1 parent ac951db commit af1d3a6
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down Expand Up @@ -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}}
Expand All @@ -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}}
Expand Down Expand Up @@ -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}}
Expand Down Expand Up @@ -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}}
Expand All @@ -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}}
Expand Down

0 comments on commit af1d3a6

Please sign in to comment.