[tracker] build: Clean up more compiler warnings
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] build: Clean up more compiler warnings
- Date: Thu, 15 Dec 2011 12:20:06 +0000 (UTC)
commit 97fe5ee7cffcae20e03b9ad4e5cc778038efa964
Author: Martyn Russell <martyn lanedo com>
Date: Thu Dec 15 10:28:10 2011 +0000
build: Clean up more compiler warnings
src/miners/rss/tracker-miner-rss.c | 4 ----
src/tracker-extract/tracker-extract-gstreamer.c | 2 +-
src/tracker-extract/tracker-extract-png.c | 8 ++++++--
3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/miners/rss/tracker-miner-rss.c b/src/miners/rss/tracker-miner-rss.c
index 813a0d3..5d32634 100644
--- a/src/miners/rss/tracker-miner-rss.c
+++ b/src/miners/rss/tracker-miner-rss.c
@@ -295,14 +295,12 @@ feed_channel_change_updated_time_cb (GObject *source,
static gboolean
feed_channel_changed_timeout_cb (gpointer user_data)
{
- TrackerMinerRSSPrivate *priv;
TrackerSparqlBuilder *sparql;
FeedChannelUpdateData *fcud;
gchar *uri;
time_t now;
fcud = user_data;
- priv = TRACKER_MINER_RSS_GET_PRIVATE (fcud->miner);
now = time (NULL);
uri = g_object_get_data (G_OBJECT (fcud->channel), "subject");
@@ -406,12 +404,10 @@ feed_item_insert_cb (GObject *source,
gpointer user_data)
{
FeedItemInsertData *fiid;
- FeedChannel *channel;
GError *error;
const gchar *title;
fiid = user_data;
- channel = feed_item_get_parent (fiid->item);
title = feed_item_get_title (fiid->item);
error = NULL;
diff --git a/src/tracker-extract/tracker-extract-gstreamer.c b/src/tracker-extract/tracker-extract-gstreamer.c
index 46fc258..559c5c9 100644
--- a/src/tracker-extract/tracker-extract-gstreamer.c
+++ b/src/tracker-extract/tracker-extract-gstreamer.c
@@ -1184,7 +1184,7 @@ extract_metadata (MetadataExtractor *extractor,
tracker_sparql_builder_object_boolean (metadata, TRUE);
}
#else
-#warning TODO: handle encrypted content with the Discoverer/GUPnP-DLNA backends
+/* #warning TODO: handle encrypted content with the Discoverer/GUPnP-DLNA backends */
#endif
#if defined(GSTREAMER_BACKEND_TAGREADBIN)
diff --git a/src/tracker-extract/tracker-extract-png.c b/src/tracker-extract/tracker-extract-png.c
index 2bf5c5e..eea147f 100644
--- a/src/tracker-extract/tracker-extract-png.c
+++ b/src/tracker-extract/tracker-extract-png.c
@@ -79,6 +79,8 @@ rfc1123_to_iso8601_date (const gchar *date)
return tracker_date_format_to_iso8601 (date, RFC1123_DATE_FORMAT);
}
+#if defined(PNG_iTXt_SUPPORTED) && (defined(HAVE_EXEMPI) || defined(HAVE_LIBEXIF))
+
/* Handle raw profiles by Imagemagick (at least). Hex encoded with
* line-changes and other (undocumented/unofficial) twists.
*/
@@ -181,6 +183,8 @@ raw_profile_new (const gchar *input,
return output;
}
+#endif /* defined(PNG_iTXt_SUPPORTED) && (defined(HAVE_EXEMPI) || defined(HAVE_LIBEXIF)) */
+
static void
read_metadata (TrackerSparqlBuilder *preupdate,
TrackerSparqlBuilder *metadata,
@@ -256,7 +260,7 @@ read_metadata (TrackerSparqlBuilder *preupdate,
continue;
}
-#endif
+#endif /*HAVE_EXEMPI && PNG_iTXt_SUPPORTED */
#if defined(HAVE_LIBEXIF) && defined(PNG_iTXt_SUPPORTED)
if (g_strcmp0 ("Raw profile type exif", text_ptr[i].key) == 0) {
@@ -284,7 +288,7 @@ read_metadata (TrackerSparqlBuilder *preupdate,
continue;
}
-#endif /* HAVE_LIBEXIF */
+#endif /* HAVE_LIBEXIF && PNG_iTXt_SUPPORTED */
if (g_strcmp0 (text_ptr[i].key, "Author") == 0) {
pd.author = text_ptr[i].text;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]