[glib: 1/3] Fix defined but not used warning in gobject/gobject.c
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/3] Fix defined but not used warning in gobject/gobject.c
- Date: Thu, 23 Dec 2021 12:51:19 +0000 (UTC)
commit c8274a51cdb66ac74c02c9232b4096fde8f33563
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Fri Dec 17 15:30:18 2021 +0100
Fix defined but not used warning in gobject/gobject.c
gobject/gobject.c:1189:1: warning: ‘floating_check’ defined but not used
gobject/gobject.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gobject/gobject.c b/gobject/gobject.c
index 2a75433da..64557eaa0 100644
--- a/gobject/gobject.c
+++ b/gobject/gobject.c
@@ -1185,6 +1185,7 @@ g_object_real_dispose (GObject *object)
g_datalist_id_set_data (&object->qdata, quark_weak_locations, NULL);
}
+#ifdef G_ENABLE_DEBUG
static gboolean
floating_check (GObject *object)
{
@@ -1202,6 +1203,7 @@ floating_check (GObject *object)
return FALSE;
}
+#endif
static void
g_object_finalize (GObject *object)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]