[tracker] Fix compile warnings
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [tracker] Fix compile warnings
- Date: Fri, 17 Apr 2009 04:57:24 -0400 (EDT)
commit 2fd549e423bffd7c039768ee07007c0ceea97db7
Author: Jürg Billeter <j bitron ch>
Date: Fri Apr 17 10:56:58 2009 +0200
Fix compile warnings
---
src/libtracker-common/tracker-hal.c | 2 -
src/plugins/evolution/tracker-evolution-indexer.c | 6 ++++-
src/plugins/evolution/tracker-evolution-plugin.c | 2 +-
src/plugins/kmail/tracker-kmail-indexer.c | 6 ++++-
src/tracker-extract/tracker-extract-playlist.c | 2 -
src/tracker-extract/tracker-extract.c | 24 +--------------------
src/tracker-utils/tracker-import.c | 2 -
7 files changed, 12 insertions(+), 32 deletions(-)
diff --git a/src/libtracker-common/tracker-hal.c b/src/libtracker-common/tracker-hal.c
index 1c551dd..10ba038 100644
--- a/src/libtracker-common/tracker-hal.c
+++ b/src/libtracker-common/tracker-hal.c
@@ -958,11 +958,9 @@ hal_device_property_modified_cb (LibHalContext *context,
if (is_mounted) {
LibHalVolume *volume;
const gchar *mount_point;
- const gchar *device_file;
volume = libhal_volume_from_udi (context, udi);
mount_point = libhal_volume_get_mount_point (volume);
- device_file = libhal_volume_get_device_file (volume);
g_message ("HAL device:'%s' with udi:'%s' is now mounted",
device_file,
diff --git a/src/plugins/evolution/tracker-evolution-indexer.c b/src/plugins/evolution/tracker-evolution-indexer.c
index c98bc5f..4f32a5e 100644
--- a/src/plugins/evolution/tracker-evolution-indexer.c
+++ b/src/plugins/evolution/tracker-evolution-indexer.c
@@ -37,8 +37,9 @@
#include <libtracker-common/tracker-ontology.h>
-#include <libtracker-data/tracker-data-update.h>
#include <libtracker-data/tracker-data-manager.h>
+#include <libtracker-data/tracker-data-query.h>
+#include <libtracker-data/tracker-data-update.h>
#include "tracker-evolution-indexer.h"
@@ -88,6 +89,9 @@ enum {
PROP_0,
};
+void tracker_push_module_init (TrackerConfig *config);
+void tracker_push_module_shutdown (void);
+
static void
tracker_evolution_indexer_finalize (GObject *object)
{
diff --git a/src/plugins/evolution/tracker-evolution-plugin.c b/src/plugins/evolution/tracker-evolution-plugin.c
index 0e7c287..d2cb329 100644
--- a/src/plugins/evolution/tracker-evolution-plugin.c
+++ b/src/plugins/evolution/tracker-evolution-plugin.c
@@ -366,7 +366,7 @@ on_folder_summary_changed (CamelFolder *folder,
flags = (guint) camel_message_info_flags (linfo);
/* Camel returns a time_t, I think a uint64 is the best fit here */
- sent = g_strdup_printf ("%"PRIu64, (unsigned long long) camel_message_info_date_sent (linfo));
+ sent = g_strdup_printf ("%"PRIu64, (guint64) camel_message_info_date_sent (linfo));
/* Camel returns a uint32, so %u */
size = g_strdup_printf ("%u", camel_message_info_size (linfo));
diff --git a/src/plugins/kmail/tracker-kmail-indexer.c b/src/plugins/kmail/tracker-kmail-indexer.c
index fd21357..cad2266 100644
--- a/src/plugins/kmail/tracker-kmail-indexer.c
+++ b/src/plugins/kmail/tracker-kmail-indexer.c
@@ -37,8 +37,9 @@
#include <libtracker-common/tracker-ontology.h>
-#include <libtracker-data/tracker-data-update.h>
#include <libtracker-data/tracker-data-manager.h>
+#include <libtracker-data/tracker-data-query.h>
+#include <libtracker-data/tracker-data-update.h>
/* This is okay, we run in-process of the indexer: we can access its symbols */
#include <tracker-indexer/tracker-module.h>
@@ -99,6 +100,9 @@ enum {
PROP_0,
};
+void tracker_push_module_init (TrackerConfig *config);
+void tracker_push_module_shutdown (void);
+
static void
tracker_kmail_indexer_finalize (GObject *object)
{
diff --git a/src/tracker-extract/tracker-extract-playlist.c b/src/tracker-extract/tracker-extract-playlist.c
index 2ceb702..38e25d9 100644
--- a/src/tracker-extract/tracker-extract-playlist.c
+++ b/src/tracker-extract/tracker-extract-playlist.c
@@ -108,7 +108,6 @@ extract_playlist (const gchar *uri,
TotemPlParser *pl;
TotemPlParserResult result;
PlaylistMetadata data = { 0, 0, metadata, uri };
- gchar *proper_filename;
pl = totem_pl_parser_new ();
@@ -150,7 +149,6 @@ extract_playlist (const gchar *uri,
data.total_time);
*/
- g_free (proper_filename);
g_object_unref (pl);
}
diff --git a/src/tracker-extract/tracker-extract.c b/src/tracker-extract/tracker-extract.c
index d380784..4c2fd5b 100644
--- a/src/tracker-extract/tracker-extract.c
+++ b/src/tracker-extract/tracker-extract.c
@@ -191,27 +191,6 @@ tracker_extract_new (void)
return object;
}
-static void
-print_file_metadata_item (gpointer key,
- gpointer value,
- gpointer user_data)
-{
- gchar *value_utf8;
-
- g_return_if_fail (key != NULL);
- g_return_if_fail (value != NULL);
-
- value_utf8 = g_locale_to_utf8 (value, -1, NULL, NULL, NULL);
-
- if (value_utf8) {
- tracker_dbus_request_debug (GPOINTER_TO_UINT (user_data),
- " Found '%s'='%s'",
- key,
- value_utf8);
- g_free (value_utf8);
- }
-}
-
static GPtrArray *
get_file_metadata (TrackerExtract *extract,
guint request_id,
@@ -226,7 +205,7 @@ get_file_metadata (TrackerExtract *extract,
gchar *mime_used = NULL;
goffset size = 0;
gchar *content_type = NULL;
- gchar *mime = mime_;
+ const gchar *mime = mime_;
/* Create hash table to send back */
statements = g_ptr_array_new ();
@@ -370,7 +349,6 @@ tracker_extract_get_metadata_by_cmdline (TrackerExtract *object,
const gchar *mime)
{
guint request_id;
- gint i;
GPtrArray *statements = NULL;
request_id = tracker_dbus_get_next_request_id ();
diff --git a/src/tracker-utils/tracker-import.c b/src/tracker-utils/tracker-import.c
index e4c06aa..d8c9093 100644
--- a/src/tracker-utils/tracker-import.c
+++ b/src/tracker-utils/tracker-import.c
@@ -45,10 +45,8 @@ int
main (int argc, char **argv)
{
TrackerClient *client;
- gchar *query;
GOptionContext *context;
GError *error = NULL;
- GPtrArray *results;
GFile *file;
char *uri;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]