|
@@ -120,7 +120,7 @@ struct EngineClassRegistration {
|
|
|
|
|
|
#define GDCLASS(m_class, m_inherits) \
|
|
#define GDCLASS(m_class, m_inherits) \
|
|
private: \
|
|
private: \
|
|
- void operator=(const m_class &p_rval) {} \
|
|
|
|
|
|
+ void operator=(const m_class & /*p_rval*/) {} \
|
|
friend class ::godot::ClassDB; \
|
|
friend class ::godot::ClassDB; \
|
|
\
|
|
\
|
|
protected: \
|
|
protected: \
|
|
@@ -308,7 +308,7 @@ public:
|
|
} \
|
|
} \
|
|
} \
|
|
} \
|
|
\
|
|
\
|
|
- static void free(void *data, GDExtensionClassInstancePtr ptr) { \
|
|
|
|
|
|
+ static void free(void * /*data*/, GDExtensionClassInstancePtr ptr) { \
|
|
if (ptr) { \
|
|
if (ptr) { \
|
|
m_class *cls = reinterpret_cast<m_class *>(ptr); \
|
|
m_class *cls = reinterpret_cast<m_class *>(ptr); \
|
|
cls->~m_class(); \
|
|
cls->~m_class(); \
|
|
@@ -316,14 +316,14 @@ public:
|
|
} \
|
|
} \
|
|
} \
|
|
} \
|
|
\
|
|
\
|
|
- static void *_gde_binding_create_callback(void *p_token, void *p_instance) { \
|
|
|
|
|
|
+ static void *_gde_binding_create_callback(void * /*p_token*/, void * /*p_instance*/) { \
|
|
return nullptr; \
|
|
return nullptr; \
|
|
} \
|
|
} \
|
|
\
|
|
\
|
|
- static void _gde_binding_free_callback(void *p_token, void *p_instance, void *p_binding) { \
|
|
|
|
|
|
+ static void _gde_binding_free_callback(void * /*p_token*/, void * /*p_instance*/, void * /*p_binding*/) { \
|
|
} \
|
|
} \
|
|
\
|
|
\
|
|
- static GDExtensionBool _gde_binding_reference_callback(void *p_token, void *p_instance, GDExtensionBool p_reference) { \
|
|
|
|
|
|
+ static GDExtensionBool _gde_binding_reference_callback(void * /*p_token*/, void * /*p_instance*/, GDExtensionBool /*p_reference*/) { \
|
|
return true; \
|
|
return true; \
|
|
} \
|
|
} \
|
|
\
|
|
\
|