Skip to content

Commit 28e8b1a

Browse files
authored
Merge pull request #1857 from qqwobble/silenced-warning-call-with-variant
Silenced compiler warning in godot::call_with_variant_args_ret_helper
2 parents 4218f93 + 3eb3069 commit 28e8b1a

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
@@ -261,6 +261,7 @@ void call_with_variant_args_ret_helper(T *p_instance, R (T::*p_method)(P...), co
261261
#else
262262
r_ret = (p_instance->*p_method)(VariantCaster<P>::cast(*p_args[Is])...);
263263
#endif
264+
(void)p_args; // Avoid warning.
264265
}
265266

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

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

0 commit comments

Comments
 (0)