[rhythmbox/wip/hadess/cleanups] metadata: Fix compile-time warning
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox/wip/hadess/cleanups] metadata: Fix compile-time warning
- Date: Mon, 18 Oct 2021 14:35:29 +0000 (UTC)
commit dc8c8eaf629dad93ad2c4da188eae5476b3abde3
Author: Bastien Nocera <hadess hadess net>
Date: Mon Oct 18 16:32:14 2021 +0200
metadata: Fix compile-time warning
In file included from /usr/include/glib-2.0/gobject/gbinding.h:29:0,
from /usr/include/glib-2.0/glib-object.h:23,
from ../../metadata/rb-ext-db.h:31,
from ../../metadata/rb-ext-db.c:37:
../../metadata/rb-ext-db.c: In function 'impl_constructor':
/usr/include/glib-2.0/gobject/gobject.h:512:33: error: return from incompatible pointer type
[-Werror=incompatible-pointer-types]
#define g_object_ref(Obj) ((__typeof__(Obj)) (g_object_ref) (Obj))
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../metadata/rb-ext-db.c:349:11: note: in expansion of macro 'g_object_ref'
return g_object_ref (inst);
^~~~~~~~~~~~
metadata/rb-ext-db.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/metadata/rb-ext-db.c b/metadata/rb-ext-db.c
index 2307bca60..18c2645d0 100644
--- a/metadata/rb-ext-db.c
+++ b/metadata/rb-ext-db.c
@@ -346,7 +346,7 @@ impl_constructor (GType type, guint n_construct_properties, GObjectConstructPara
RBExtDB *inst = l->data;
if (g_strcmp0 (name, inst->priv->name) == 0) {
rb_debug ("found existing metadata store %s", name);
- return g_object_ref (inst);
+ return g_object_ref (G_OBJECT (inst));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]