[tracker/wip/carlosg/compiler-warnings: 5/10] libtracker-miner: Drop GDestroyNotify cast



commit e22c22aa155a4ccf80cc9dbf533f60a49dfc77ef
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Oct 1 01:14:33 2018 +0200

    libtracker-miner: Drop GDestroyNotify cast
    
    It defeats g_clear_pointer() type checks, which causes a warning.

 src/libtracker-miner/tracker-decorator.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-decorator.c b/src/libtracker-miner/tracker-decorator.c
index 31bb15278..f51b284c8 100644
--- a/src/libtracker-miner/tracker-decorator.c
+++ b/src/libtracker-miner/tracker-decorator.c
@@ -374,7 +374,7 @@ decorator_commit_cb (GObject      *object,
                g_ptr_array_unref (errors);
        }
 
-       g_clear_pointer (&priv->commit_buffer, (GDestroyNotify) g_array_unref);
+       g_clear_pointer (&priv->commit_buffer, g_array_unref);
 
        if (!decorator_check_commit (decorator))
                decorator_cache_next_items (decorator);
@@ -1154,8 +1154,8 @@ tracker_decorator_finalize (GObject *object)
        g_hash_table_destroy (priv->tasks);
        g_array_unref (priv->classes);
        g_array_unref (priv->prepended_ids);
-       g_clear_pointer (&priv->sparql_buffer, (GDestroyNotify) g_array_unref);
-       g_clear_pointer (&priv->commit_buffer, (GDestroyNotify) g_array_unref);
+       g_clear_pointer (&priv->sparql_buffer, g_array_unref);
+       g_clear_pointer (&priv->commit_buffer, g_array_unref);
        g_sequence_free (priv->blacklist_items);
        g_free (priv->data_source);
        g_timer_destroy (priv->timer);


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