[tracker: 2/13] Removed typecast warnings
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker: 2/13] Removed typecast warnings
- Date: Sun, 23 May 2021 01:05:16 +0000 (UTC)
commit 3f9d56136a27aa2ad8c4f9aee2fcab490b81f6d3
Author: nitinosiris <nitinwartkar58 gmail com>
Date: Thu May 20 16:17:31 2021 +0530
Removed typecast warnings
docs/tools/ttlresource2xml.c | 2 +-
src/libtracker-data/tracker-data-manager.c | 4 ++--
src/libtracker-data/tracker-db-interface-sqlite.c | 2 +-
tests/libtracker-sparql/tracker-sparql-test.c | 4 +---
4 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/docs/tools/ttlresource2xml.c b/docs/tools/ttlresource2xml.c
index dac851ed1..784680446 100644
--- a/docs/tools/ttlresource2xml.c
+++ b/docs/tools/ttlresource2xml.c
@@ -442,7 +442,7 @@ print_class_hierarchy (FILE *f,
{
GPtrArray *strings;
gchar *id;
- gint i;
+ gsize i;
strings = class_get_parent_hierarchy_strings (klass, ontology);
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index b2e774ee8..c224f458a 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -3663,8 +3663,8 @@ setup_interface_cb (TrackerDBManager *db_manager,
guint flags;
if (!tracker_data_manager_initialize_iface (data_manager, iface, &error)) {
- g_critical ("Could not set up interface %p: %s",
- iface, error->message);
+ g_critical ("Could not set up interface : %s",
+ error->message);
g_error_free (error);
}
diff --git a/src/libtracker-data/tracker-db-interface-sqlite.c
b/src/libtracker-data/tracker-db-interface-sqlite.c
index 7cf7d0478..bfdac2ffa 100644
--- a/src/libtracker-data/tracker-db-interface-sqlite.c
+++ b/src/libtracker-data/tracker-db-interface-sqlite.c
@@ -2523,7 +2523,7 @@ tracker_db_interface_sqlite_fts_rebuild_tokens (TrackerDBInterface *interface,
void
tracker_db_interface_sqlite_reset_collator (TrackerDBInterface *db_interface)
{
- TRACKER_NOTE (SQLITE, g_message ("Resetting collator in db interface %p", db_interface));
+ TRACKER_NOTE (SQLITE, g_message ("Resetting collator in db interface"));
/* This will overwrite any other collation set before, if any */
if (sqlite3_create_collation_v2 (db_interface->db,
diff --git a/tests/libtracker-sparql/tracker-sparql-test.c b/tests/libtracker-sparql/tracker-sparql-test.c
index 70d5a5ef5..c6e1b0e8d 100644
--- a/tests/libtracker-sparql/tracker-sparql-test.c
+++ b/tests/libtracker-sparql/tracker-sparql-test.c
@@ -153,9 +153,7 @@ test_tracker_sparql_cursor_next_async_cb (GObject *source,
*/
if (next == next_to_cancel && finished == 1) {
/* Cancel */
- g_print ("# Cancelling cancellable:%p at count:%d\n",
- cancellables[query],
- next);
+ g_print ("# Cancelling cancellable: at count:%d\n", next);
g_cancellable_cancel (cancellables[query]);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]