[gvfs] google: Drop the (GDestroyNotify) cast
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] google: Drop the (GDestroyNotify) cast
- Date: Tue, 24 Jul 2018 14:37:54 +0000 (UTC)
commit a8e436fa705de3d8468ed8bf268800522cfa9dd0
Author: Ondrej Holy <oholy redhat com>
Date: Mon Jul 23 13:39:33 2018 +0200
google: Drop the (GDestroyNotify) cast
"warning: function called through a non-compatible type" is printed
by GCC 8 because of (GDestroyNotfiy) cast in g_clear_pointer, see for
more info: https://gitlab.gnome.org/GNOME/glib/issues/1425. Let's
drop the (GDestroyNotify) cast in order to prevent those warnings.
The cast was not needed anyway.
daemon/gvfsbackendgoogle.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gvfsbackendgoogle.c b/daemon/gvfsbackendgoogle.c
index 7bea4bff..2e96cca4 100644
--- a/daemon/gvfsbackendgoogle.c
+++ b/daemon/gvfsbackendgoogle.c
@@ -2866,8 +2866,8 @@ g_vfs_backend_google_dispose (GObject *_self)
g_clear_object (&self->service);
g_clear_object (&self->root);
g_clear_object (&self->client);
- g_clear_pointer (&self->entries, (GDestroyNotify) g_hash_table_unref);
- g_clear_pointer (&self->dir_entries, (GDestroyNotify) g_hash_table_unref);
+ g_clear_pointer (&self->entries, g_hash_table_unref);
+ g_clear_pointer (&self->dir_entries, g_hash_table_unref);
G_OBJECT_CLASS (g_vfs_backend_google_parent_class)->dispose (_self);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]