From 3eb3069e0955e3ecbb37297dd71aa46252ffbf51 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 --- 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 ba99aa38a..7226af58e 100644 --- a/include/godot_cpp/core/binder_common.hpp +++ b/include/godot_cpp/core/binder_common.hpp @@ -262,6 +262,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 @@ -273,7 +274,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