[tracker] tracker-store: Fix compiler warnings



commit 3cba3373c15cb8051a62cb2fa5747890227655b5
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Aug 31 22:41:29 2017 +0200

    tracker-store: Fix compiler warnings
    
    Use backup_save() function with correct non-NULL arguments,
    avoid an implicit .begin(), and fix CCode annotations for
    a vala function.

 src/tracker-store/tracker-backup.vala    |    2 +-
 src/tracker-store/tracker-dbus.vala      |    2 +-
 src/tracker-store/tracker-writeback.vapi |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/tracker-store/tracker-backup.vala b/src/tracker-store/tracker-backup.vala
index a0876f7..5db0752 100644
--- a/src/tracker-store/tracker-backup.vala
+++ b/src/tracker-store/tracker-backup.vala
@@ -41,7 +41,7 @@ public class Tracker.Backup : Object {
 
                        Error backup_error = null;
                        var data_manager = Tracker.Main.get_data_manager ();
-                       Data.backup_save (data_manager, destination, null, error => {
+                       Data.backup_save (data_manager, destination, destination, error => {
                                backup_error = error;
                                save.callback ();
                        });
diff --git a/src/tracker-store/tracker-dbus.vala b/src/tracker-store/tracker-dbus.vala
index e76980a..35c1542 100644
--- a/src/tracker-store/tracker-dbus.vala
+++ b/src/tracker-store/tracker-dbus.vala
@@ -93,7 +93,7 @@ public class Tracker.DBus {
        }
 
        public static void on_domain_name_disappeared (DBusConnection connection, string name) {
-               notifier.wait ();
+               notifier.wait.begin ();
                yield;
                watch_main_loop.quit ();
        }
diff --git a/src/tracker-store/tracker-writeback.vapi b/src/tracker-store/tracker-writeback.vapi
index f51fa25..368de03 100644
--- a/src/tracker-store/tracker-writeback.vapi
+++ b/src/tracker-store/tracker-writeback.vapi
@@ -18,7 +18,7 @@
  */
 
 namespace Tracker {
-       [CCode (has_array_length = false, array_null_terminated = true, has_target = false, cheader_filename 
= "tracker-store/tracker-writeback.h")]
+       [CCode (array_null_terminated = true, has_target = false, cheader_filename = 
"tracker-store/tracker-writeback.h")]
        public delegate string[] WritebackGetPredicatesFunc ();
 
        [CCode (cheader_filename = "tracker-store/tracker-writeback.h")]


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