[tracker] libtracker-data: Fix C warning



commit 7be95999a5d942335a22654cd912d3f6f2083f47
Author: Jürg Billeter <j bitron ch>
Date:   Thu May 12 16:28:53 2011 +0200

    libtracker-data: Fix C warning

 src/libtracker-data/tracker-data-backup.c         |    4 ----
 src/libtracker-data/tracker-data-manager.c        |    1 -
 src/libtracker-data/tracker-data-update.c         |    4 ----
 src/libtracker-data/tracker-db-interface-sqlite.c |    3 +--
 src/libtracker-data/tracker-db-journal.c          |    2 --
 5 files changed, 1 insertions(+), 13 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-backup.c b/src/libtracker-data/tracker-data-backup.c
index f37b283..1a7b843 100644
--- a/src/libtracker-data/tracker-data-backup.c
+++ b/src/libtracker-data/tracker-data-backup.c
@@ -138,10 +138,6 @@ read_line_of_tar_output (GIOChannel  *channel,
                          GIOCondition condition,
                          gpointer     user_data)
 {
-	ProcessContext *context;
-
-	context = user_data;
-
 	if (condition & G_IO_ERR || condition & G_IO_HUP) {
 		return FALSE;
 	}
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index f6f9d6f..dff60f3 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -2140,7 +2140,6 @@ db_get_static_data (TrackerDBInterface *iface)
 			TrackerClass *class;
 			const gchar  *uri;
 			gint          id;
-			gint          count;
 			GValue        value = { 0 };
 			gboolean      notify;
 
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index c72409a..ae221ad 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -1034,10 +1034,6 @@ tracker_data_update_buffer_might_flush (GError **error)
 static void
 tracker_data_update_buffer_clear (void)
 {
-	TrackerDBInterface *iface;
-
-	iface = tracker_db_manager_get_db_interface ();
-
 	g_hash_table_remove_all (update_buffer.resources);
 	g_hash_table_remove_all (update_buffer.resources_by_id);
 	g_hash_table_remove_all (update_buffer.resource_cache);
diff --git a/src/libtracker-data/tracker-db-interface-sqlite.c b/src/libtracker-data/tracker-db-interface-sqlite.c
index 243b90a..0e06110 100644
--- a/src/libtracker-data/tracker-db-interface-sqlite.c
+++ b/src/libtracker-data/tracker-db-interface-sqlite.c
@@ -1307,9 +1307,8 @@ execute_stmt (TrackerDBInterface  *interface,
               GCancellable        *cancellable,
               GError             **error)
 {
-	gint columns, result;
+	gint result;
 
-	columns = sqlite3_column_count (stmt);
 	result = SQLITE_OK;
 
 	/* Statement is going to start, check if we got a request to reset the
diff --git a/src/libtracker-data/tracker-db-journal.c b/src/libtracker-data/tracker-db-journal.c
index 31bf0da..89c6a4b 100644
--- a/src/libtracker-data/tracker-db-journal.c
+++ b/src/libtracker-data/tracker-db-journal.c
@@ -2088,7 +2088,6 @@ tracker_db_journal_rotate (GError **error)
 	GInputStream *istream;
 	GOutputStream *ostream, *cstream;
 	static gint max = 0;
-	static gboolean needs_move;
 	GError *n_error = NULL;
 	gboolean ret;
 
@@ -2098,7 +2097,6 @@ tracker_db_journal_rotate (GError **error)
 		const gchar *f_name;
 
 		directory = g_path_get_dirname (writer.journal_filename);
-		needs_move = (g_strcmp0 (rotating_settings.rotate_to, directory) != 0);
 		journal_dir = g_dir_open (directory, 0, NULL);
 
 		f_name = g_dir_read_name (journal_dir);



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