From cc62b3520e5731db187403154aecd37646b248c9 Mon Sep 17 00:00:00 2001 From: Olivier Duchateau Date: Sun, 3 Feb 2019 16:08:15 +0100 Subject: [PATCH] Fix warnings reported by GCC 8 --- xfconf/xfconf-channel.c | 1 + xfconfd/xfconf-daemon.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/xfconf/xfconf-channel.c b/xfconf/xfconf-channel.c index 7b3a7a6..ce45f05 100644 --- a/xfconf/xfconf-channel.c +++ b/xfconf/xfconf-channel.c @@ -327,6 +327,7 @@ xfconf_channel_get_g_property(GObject *object, case PROP_IS_SINGLETON: g_value_set_boolean(value, channel->is_singleton); + break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec); diff --git a/xfconfd/xfconf-daemon.c b/xfconfd/xfconf-daemon.c index b96edfd..fbe5da3 100644 --- a/xfconfd/xfconf-daemon.c +++ b/xfconfd/xfconf-daemon.c @@ -132,8 +132,8 @@ xfconf_daemon_backend_property_changed(XfconfBackend *backend, gpointer user_data) { XfconfPropChangedData *pdata = g_slice_new0(XfconfPropChangedData); - pdata->xfconfd = g_object_ref(G_OBJECT(user_data)); - pdata->backend = g_object_ref(G_OBJECT(backend)); + pdata->xfconfd = g_object_ref(XFCONF_DAEMON(user_data)); + pdata->backend = g_object_ref(XFCONF_BACKEND(backend)); pdata->channel = g_strdup(channel); pdata->property = g_strdup(property); g_idle_add(xfconf_daemon_emit_property_changed_idled, pdata); -- 2.20.1