Skip to content

Commit

Permalink
fix: ignore -Wgnu-zero-variadic-macro-arguments on clang
Browse files Browse the repository at this point in the history
  • Loading branch information
J-M0 committed Nov 29, 2024
1 parent d84c495 commit d310959
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d310959

Please sign in to comment.