Skip to content

Commit

Permalink
chore: suppress false positive warning of gcc12
Browse files Browse the repository at this point in the history
  • Loading branch information
horror-proton committed Dec 17, 2024
1 parent 8fb2734 commit 05d3dec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ if (MSVC)
else ()
target_compile_options(MaaCore PRIVATE "-Wall;-Werror;-Wextra;-Wpedantic;-Wno-missing-field-initializers")
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 13)
target_compile_options(MaaCore PRIVATE "-Wno-restrict")
target_compile_options(MaaCore PRIVATE "-Wno-restrict;-Wno-darray-bounds;-Wno-stringop-overread")
endif()
# LLVM clang 16 will failed with `error: no member named 'join' in namespace 'std::ranges::views'`, but Apple clang 16 won't
# value defined in https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_COMPILER_ID.html
Expand Down

0 comments on commit 05d3dec

Please sign in to comment.