summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Snopek <dsnopek@gmail.com>2024-08-08 09:13:51 -0500
committerGitHub <noreply@github.com>2024-08-08 09:13:51 -0500
commit937b1d809a452c560a6413091df583d57d80402e (patch)
treef793f5479b668555ae52f4a7eb32e7b438db4fb8
parent9da1e0cee1b7e364374b3a3a09829eed3f487d10 (diff)
parent738859f49bf34b176116729f56dd2e57e2fd9b86 (diff)
downloadredot-cpp-937b1d809a452c560a6413091df583d57d80402e.tar.gz
Merge pull request #1545 from Klaim/warnings_gdclass
Removes warnings generated by GDCLASS usage
-rw-r--r--include/godot_cpp/classes/wrapped.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/godot_cpp/classes/wrapped.hpp b/include/godot_cpp/classes/wrapped.hpp
index 6d9bef7..0ffd783 100644
--- a/include/godot_cpp/classes/wrapped.hpp
+++ b/include/godot_cpp/classes/wrapped.hpp
@@ -179,7 +179,7 @@ struct EngineClassRegistration {
// every line of the macro different
#define GDCLASS(m_class, m_inherits) /***********************************************************************************************************************************************/ \
private: \
- void operator=(const m_class &p_rval) {} \
+ void operator=(const m_class & /*p_rval*/) {} \
friend class ::godot::ClassDB; \
friend class ::godot::Wrapped; \
\
@@ -316,7 +316,7 @@ public:
return ::godot::internal::create_c_property_list(plist_cpp, r_count); \
} \
\
- static void free_property_list_bind(GDExtensionClassInstancePtr p_instance, const GDExtensionPropertyInfo *p_list, uint32_t p_count) { \
+ static void free_property_list_bind(GDExtensionClassInstancePtr p_instance, const GDExtensionPropertyInfo *p_list, uint32_t /*p_count*/) { \
if (p_instance) { \
m_class *cls = reinterpret_cast<m_class *>(p_instance); \
cls->plist_owned.clear(); \
@@ -373,7 +373,7 @@ public:
} \
} \
\
- static void free(void *data, GDExtensionClassInstancePtr ptr) { \
+ static void free(void * /*data*/, GDExtensionClassInstancePtr ptr) { \
if (ptr) { \
m_class *cls = reinterpret_cast<m_class *>(ptr); \
cls->~m_class(); \
@@ -381,14 +381,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; \
} \
\
- 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; \
} \
\