Skip to content

Commit

Permalink
Fixes compilation failures with clang-19
Browse files Browse the repository at this point in the history
Signed-off-by: Tao He <[email protected]>
  • Loading branch information
sighingnow committed Mar 1, 2024
1 parent f4bdc43 commit 3aac03c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ check_cxx_compiler_flag(-Wno-noexcept-type W_NO_NOEXCEPT_TYPE)
check_cxx_compiler_flag(-Wno-unused-but-set-parameter W_NO_UNUSED_BUT_SET_PARAMETER)
check_cxx_compiler_flag(-Wno-unused-private-field W_NO_UNUSED_PRIVATE_FIELD)
check_cxx_compiler_flag(-Wno-unknown-warning-option W_NO_UNKNOWN_WARNING_OPTION)
check_cxx_compiler_flag(-Wno-enum-constexpr-conversion W_NO_ENUM_CONSTEXPR_CONVERSION)
if(W_NO_CLASS_CONVERSION)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-class-conversion")
endif()
Expand Down Expand Up @@ -232,6 +233,9 @@ endif()
if(W_NO_UNKNOWN_WARNING_OPTION)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-warning-option")
endif()
if(W_NO_ENUM_CONSTEXPR_CONVERSION)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-enum-constexpr-conversion")
endif()

if(BUILD_VINEYARD_COVERAGE)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fprofile-arcs -ftest-coverage")
Expand Down

0 comments on commit 3aac03c

Please sign in to comment.