[tracker-miners/sam/warning-fix] miners/fs: Fix compile warning



commit 142b038b98fe9685fb443e10d1a102dc9d79bd31
Author: Sam Thursfield <sam afuera me uk>
Date:   Tue Sep 10 10:46:02 2019 +0200

    miners/fs: Fix compile warning
    
        [309/338] Compiling C object 'src/miners/fs/8409082@@tracker-miner-fs@exe/tracker-miner-files.c.o'.
        ../src/miners/fs/tracker-miner-files.c: In function ‘process_file_cb’:
        ../src/miners/fs/tracker-miner-files.c:2487:24: warning: passing argument 1 of ‘g_object_run_dispose’ 
from incompatible pointer type [-Wincompatible-pointer-types]
         2487 |  g_object_run_dispose (resource);
              |                        ^~~~~~~~
              |                        |
              |                        TrackerResource * {aka struct _TrackerResource *}

 src/miners/fs/tracker-miner-files.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index b3028ebae..7d7c1d97e 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -2484,7 +2484,7 @@ process_file_cb (GObject      *object,
        priv->extraction_queue = g_list_remove (priv->extraction_queue, data);
        process_file_data_free (data);
 
-       g_object_run_dispose (resource);
+       g_object_run_dispose (G_OBJECT (resource));
        g_object_unref (resource);
        g_object_unref (file_info);
        g_free (sparql_str);


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