Skip to content

Commit

Permalink
fixup! fix: Avoid -Wgnu-zero-variadic-macro-arguments in C++20 on clang
Browse files Browse the repository at this point in the history
  • Loading branch information
J-M0 committed Nov 28, 2024
1 parent e4be448 commit 398526b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/pybind11/pybind11.h
Original file line number Diff line number Diff line change
Expand Up @@ -2909,6 +2909,7 @@ function get_override(const T *this_ptr, const char *name) {
pybind11::function override \
= pybind11::get_override(static_cast<const cname *>(this), name); \
if (override) { \
PYBIND11_WARNING_DISABLE_CLANG("-Wgnu-zero-variadic-macro-arguments") \
auto o = override(__VA_ARGS__); \
PYBIND11_WARNING_PUSH \
PYBIND11_WARNING_DISABLE_MSVC(4127) \
Expand Down

0 comments on commit 398526b

Please sign in to comment.