From 1e44bbefaa71d95096743737607a7dbb78cfd3b0 Mon Sep 17 00:00:00 2001 From: = Date: Wed, 1 Oct 2025 21:16:20 +0200 Subject: [PATCH] Silenced compiler warning in godot::call_with_variant_args_ret_helper (cherry picked from commit 3eb3069e0955e3ecbb37297dd71aa46252ffbf51) --- include/godot_cpp/core/binder_common.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/godot_cpp/core/binder_common.hpp b/include/godot_cpp/core/binder_common.hpp index aed6b153..61eb6a04 100644 --- a/include/godot_cpp/core/binder_common.hpp +++ b/include/godot_cpp/core/binder_common.hpp @@ -261,6 +261,7 @@ void call_with_variant_args_ret_helper(T *p_instance, R (T::*p_method)(P...), co #else r_ret = (p_instance->*p_method)(VariantCaster

::cast(*p_args[Is])...); #endif + (void)p_args; // Avoid warning. } template @@ -272,7 +273,7 @@ void call_with_variant_args_retc_helper(T *p_instance, R (T::*p_method)(P...) co #else r_ret = (p_instance->*p_method)(VariantCaster

::cast(*p_args[Is])...); #endif - (void)p_args; + (void)p_args; // Avoid warning. } template