[tracker] Fixed compilation warnings in extractors



commit 68f7ac1c9bc75345b287bbe82c164d128d6a533c
Author: Philip Van Hoof <philip codeminded be>
Date:   Mon Jan 25 11:10:49 2010 +0100

    Fixed compilation warnings in extractors

 src/libtracker-extract/tracker-iptc.c |    5 ++++-
 src/libtracker-extract/tracker-xmp.c  |    4 +++-
 2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-extract/tracker-iptc.c b/src/libtracker-extract/tracker-iptc.c
index b9ac67d..4bfe4e8 100644
--- a/src/libtracker-extract/tracker-iptc.c
+++ b/src/libtracker-extract/tracker-iptc.c
@@ -204,6 +204,10 @@ tracker_iptc_read (const unsigned char *buffer,
                    const gchar         *uri,
                    TrackerIptcData     *data)
 {
+#ifdef HAVE_LIBIPTCDATA
+	IptcData *iptc;
+#endif /* HAVE_LIBIPTCDATA */
+
 	g_return_val_if_fail (buffer != NULL, FALSE);
 	g_return_val_if_fail (len > 0, FALSE);
 	g_return_val_if_fail (uri != NULL, FALSE);
@@ -212,7 +216,6 @@ tracker_iptc_read (const unsigned char *buffer,
 	memset (data, 0, sizeof (TrackerIptcData));
 
 #ifdef HAVE_LIBIPTCDATA
-	IptcData *iptc;
 
 	/* FIXME According to valgrind this is leaking (together with the unref).
 	 * Problem in libiptc (I replaced this with the _free equivalent) */
diff --git a/src/libtracker-extract/tracker-xmp.c b/src/libtracker-extract/tracker-xmp.c
index 86a9b1d..302c73f 100644
--- a/src/libtracker-extract/tracker-xmp.c
+++ b/src/libtracker-extract/tracker-xmp.c
@@ -464,6 +464,9 @@ tracker_xmp_read (const gchar    *buffer,
                   const gchar    *uri,
                   TrackerXmpData *data)
 {
+#ifdef HAVE_EXEMPI
+	XmpPtr xmp;
+#endif /* HAVE_EXEMPI */
 	g_return_val_if_fail (buffer != NULL, FALSE);
 	g_return_val_if_fail (len > 0, FALSE);
 	g_return_val_if_fail (uri != NULL, FALSE);
@@ -472,7 +475,6 @@ tracker_xmp_read (const gchar    *buffer,
 	memset (data, 0, sizeof (TrackerXmpData));
 
 #ifdef HAVE_EXEMPI
-	XmpPtr xmp;
 
 	xmp_init ();
 



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