diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index fe8384e57f..85e3316eac 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -2909,6 +2909,7 @@ function get_override(const T *this_ptr, const char *name) { pybind11::function override \ = pybind11::get_override(static_cast(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) \