mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-18 08:55:57 +00:00
fix: ignore -Wgnu-zero-variadic-macro-arguments on clang
This commit is contained in:
parent
d84c495037
commit
d310959bf5
@ -389,6 +389,9 @@ function(pybind11_enable_warnings target_name)
|
||||
if(DEFINED CMAKE_CXX_STANDARD AND NOT CMAKE_CXX_STANDARD VERSION_LESS 20)
|
||||
target_compile_options(${target_name} PRIVATE -Wpedantic)
|
||||
endif()
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(${target_name} PRIVATE -Wno-gnu-zero-variadic-macro-arguments)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(PYBIND11_WERROR)
|
||||
|
Loading…
Reference in New Issue
Block a user