Skip to content

Commit 5a8b8f9

Browse files
committed
Silence noisy nontrivial-memcall diagnostic on clang 20
1 parent ebbeaab commit 5a8b8f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMake/HPHPCompiler.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ if (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" OR ${CMAKE_CXX_COMPILER_ID} STREQU
123123
if(CLANG_FORCE_LIBCPP)
124124
list(APPEND GENERAL_CXX_OPTIONS "stdlib=libc++")
125125
endif()
126+
127+
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 20)
128+
list(APPEND GENERAL_OPTIONS "Wno-nontrivial-memcall")
129+
endif()
126130
else() # using GCC
127131
list(APPEND DISABLED_NAMED_WARNINGS
128132
"deprecated-declarations"

0 commit comments

Comments
 (0)