Skip to content

Commit

Permalink
For tests, consider GCC and Clang warnings as errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzeslaus committed Mar 12, 2024
1 parent 65c7759 commit d357bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function(add_pops_test NAME)
# Enable compiler warnings
target_compile_options(${NAME} PRIVATE
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>:
-Wall -Wextra -pedantic -Wfloat-conversion>
-Wall -Wextra -pedantic -Wfloat-conversion -Werror>
$<$<CXX_COMPILER_ID:MSVC>:
/W4>)
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
Expand Down

0 comments on commit d357bd2

Please sign in to comment.