From 3ffbe29f5251f362cd9d6015de148d0e8696d188 Mon Sep 17 00:00:00 2001 From: Julien Schueller Date: Thu, 3 Mar 2022 06:12:21 +0100 Subject: [PATCH] Python: avoid unused SwigMethods_proxydocs var (#2222) Avoids a warning since 3aa302c08f609ad15a602b32a8c0124eb48861f9 --- Source/Modules/python.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Modules/python.cxx b/Source/Modules/python.cxx index bfa198283..f9956c65c 100644 --- a/Source/Modules/python.cxx +++ b/Source/Modules/python.cxx @@ -819,7 +819,8 @@ public: Printf(f_wrappers, "%s\n", methods); Append(methods_proxydocs, "\t { NULL, NULL, 0, NULL }\n"); Append(methods_proxydocs, "};\n"); - Printf(f_wrappers, "%s\n", methods_proxydocs); + if ((fastproxy && !builtin) || have_fast_proxy_static_member_method_callback) + Printf(f_wrappers, "%s\n", methods_proxydocs); if (builtin) { Dump(f_builtins, f_wrappers);