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 28, 2024
1 parent d84c495 commit d6d7c7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/pybind11/detail/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@

#define PYBIND11_NAMESPACE_BEGIN(name) \
namespace name { \
PYBIND11_WARNING_PUSH
PYBIND11_WARNING_PUSH \
PYBIND11_WARNING_DISABLE_CLANG("-Wgnu-zero-variadic-macro-arguments")

#define PYBIND11_NAMESPACE_END(name) \
PYBIND11_WARNING_POP \
Expand Down

0 comments on commit d6d7c7a

Please sign in to comment.