Need to also ignore unused-but-set-parameter in method_bind

pull/1007/head
Fabio Alessandrelli 2023-12-01 11:54:34 +01:00
parent e40364dd91
commit ea76aeb72b
1 changed files with 1 additions and 0 deletions

View File

@ -605,6 +605,7 @@ protected:
#if defined(__GNUC__) && !defined(__clang__) #if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wlogical-op" #pragma GCC diagnostic ignored "-Wlogical-op"
#pragma GCC diagnostic ignored "-Wunused-but-set-parameter"
#endif #endif
virtual GDExtensionVariantType gen_argument_type(int p_arg) const { virtual GDExtensionVariantType gen_argument_type(int p_arg) const {
if (p_arg >= 0 && p_arg < (int)sizeof...(P)) { if (p_arg >= 0 && p_arg < (int)sizeof...(P)) {