Skip to content

Commit 3eb3069

Browse files
committed
Silenced compiler warning in godot::call_with_variant_args_ret_helper
1 parent e83fd09 commit 3eb3069

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/godot_cpp/core/binder_common.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ void call_with_variant_args_ret_helper(T *p_instance, R (T::*p_method)(P...), co
262262
#else
263263
r_ret = (p_instance->*p_method)(VariantCaster<P>::cast(*p_args[Is])...);
264264
#endif
265+
(void)p_args; // Avoid warning.
265266
}
266267

267268
template <typename T, typename R, typename... P, size_t... Is>
@@ -273,7 +274,7 @@ void call_with_variant_args_retc_helper(T *p_instance, R (T::*p_method)(P...) co
273274
#else
274275
r_ret = (p_instance->*p_method)(VariantCaster<P>::cast(*p_args[Is])...);
275276
#endif
276-
(void)p_args;
277+
(void)p_args; // Avoid warning.
277278
}
278279

279280
template <typename T, typename... P>

0 commit comments

Comments
 (0)