From 398526ba2e9389d703e746b268282e54fb46db51 Mon Sep 17 00:00:00 2001 From: James Morris Date: Thu, 28 Nov 2024 15:48:38 -0500 Subject: [PATCH] fixup! fix: Avoid -Wgnu-zero-variadic-macro-arguments in C++20 on clang --- include/pybind11/pybind11.h | 1 + 1 file changed, 1 insertion(+) 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) \