[gnome-settings-daemon/wip/benzea/keybindings-grabbing-rework: 10/44] color: Fix warning from cast in g_clear_pointer parameter



commit 5d6b676f873db9ba80954da753c7e23fc85ec61e
Author: Benjamin Berg <bberg redhat com>
Date:   Wed Feb 20 15:22:44 2019 +0100

    color: Fix warning from cast in g_clear_pointer parameter

 plugins/color/gsd-night-light.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/color/gsd-night-light.c b/plugins/color/gsd-night-light.c
index acbcecbc..d0349cc0 100644
--- a/plugins/color/gsd-night-light.c
+++ b/plugins/color/gsd-night-light.c
@@ -633,7 +633,7 @@ gsd_night_light_finalize (GObject *object)
         poll_smooth_destroy (self);
 
         g_clear_object (&self->settings);
-        g_clear_pointer (&self->datetime_override, (GDestroyNotify) g_date_time_unref);
+        g_clear_pointer (&self->datetime_override, g_date_time_unref);
         g_clear_pointer (&self->disabled_until_tmw_dt, g_date_time_unref);
 
         if (self->validate_id > 0) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]