Skip to content

Commit

Permalink
Change the order of applying -Werror
Browse files Browse the repository at this point in the history
  • Loading branch information
qdrvm-ci committed Jul 28, 2024
1 parent 6f7208d commit 4501df7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added .github/workflows/action-validator_darwin_arm64
Binary file not shown.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "^(AppleClang|Clang|GNU)$")
add_flag(-Wno-gnu-zero-variadic-macro-arguments) # https://stackoverflow.com/questions/21266380/is-the-gnu-zero-variadic-macro-arguments-safe-to-ignore

if(WERROR AND COMPILER_SUPPORTS_WERROR)
add_flag(-Werror) # turn all warnings into errors
add_compile_options(-Werror) # turn all warnings into errors
else()
# cmake-format: on
if ((("${CMAKE_CXX_COMPILER_ID}" MATCHES "^(AppleClang|Clang)$")
Expand Down

0 comments on commit 4501df7

Please sign in to comment.