[tracker-miners/wip/carlosg/shuffle-libtracker-miner: 58/116] tests: Fix warnings in tracker-miner-fs-test



commit 4e82d01e2749c7b467cb4241cd9d292ff843f419
Author: Sam Thursfield <sam afuera me uk>
Date:   Wed Jul 11 16:52:00 2018 +0200

    tests: Fix warnings in tracker-miner-fs-test

 tests/libtracker-miner/tracker-miner-fs-test.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/tests/libtracker-miner/tracker-miner-fs-test.c b/tests/libtracker-miner/tracker-miner-fs-test.c
index 5aaf70953..ca40ea63c 100644
--- a/tests/libtracker-miner/tracker-miner-fs-test.c
+++ b/tests/libtracker-miner/tracker-miner-fs-test.c
@@ -115,7 +115,7 @@ test_miner_remove_children (TrackerMinerFS *miner,
                                  "} WHERE {"
                                  "  ?u nie:url ?url ."
                                  "  FILTER (STRSTARTS (?url, '%s/'))"
-                                 "}", uri, uri);
+                                 "}", uri);
        g_free (uri);
 
        return sparql;
@@ -364,7 +364,7 @@ fixture_get_content (TrackerMinerFSTestFixture *fixture)
                                 "     nie:url ?url ."
                                 "  BIND (SUBSTR (?url, %d) AS ?path)"
                                 "} ORDER BY ?path",
-                                strlen (root_uri) + 2);
+                                (int)strlen (root_uri) + 2);
        g_free (root_uri);
 
 
@@ -880,7 +880,6 @@ test_content_filter_on_parent_root (TrackerMinerFSTestFixture *fixture,
                                    gconstpointer              data)
 {
        TrackerIndexingTree *indexing_tree;
-       GError *error = NULL;
 
        CREATE_FOLDER (fixture, "non-recursive");
        CREATE_FOLDER (fixture, "non-recursive/recursive");


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