[tracker/tracker-0.10] tracker-extract: Fix C warnings



commit 86bbd5077ab4f2ba5da2c288dc76eaf341bd3dea
Author: Jürg Billeter <j bitron ch>
Date:   Thu May 12 16:29:44 2011 +0200

    tracker-extract: Fix C warnings

 src/tracker-extract/tracker-extract-mp3.c      |    8 --------
 src/tracker-extract/tracker-extract-msoffice.c |    3 +--
 src/tracker-extract/tracker-extract-oasis.c    |    4 ----
 3 files changed, 1 insertions(+), 14 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-mp3.c b/src/tracker-extract/tracker-extract-mp3.c
index 933a72f..d8344a5 100644
--- a/src/tracker-extract/tracker-extract-mp3.c
+++ b/src/tracker-extract/tracker-extract-mp3.c
@@ -1220,14 +1220,12 @@ get_id3v24_tags (id3v24frame           frame,
 	case ID3V24_COMM: {
 		gchar *word;
 		gchar text_encode;
-		const gchar *text_language;
 		const gchar *text_desc;
 		const gchar *text;
 		guint offset;
 		gint text_desc_len;
 
 		text_encode   =  data[pos + 0]; /* $xx */
-		text_language = &data[pos + 1]; /* $xx xx xx */
 		text_desc     = &data[pos + 4]; /* <text string according to encoding> $00 (00) */
 		text_desc_len = id3v2_strlen (text_encode, text_desc, csize - 4);
 
@@ -1408,14 +1406,12 @@ get_id3v23_tags (id3v24frame           frame,
 	case ID3V24_COMM: {
 		gchar *word;
 		gchar text_encode;
-		const gchar *text_language;
 		const gchar *text_desc;
 		const gchar *text;
 		guint offset;
 		gint text_desc_len;
 
 		text_encode   =  data[pos + 0]; /* $xx */
-		text_language = &data[pos + 1]; /* $xx xx xx */
 		text_desc     = &data[pos + 4]; /* <text string according to encoding> $00 (00) */
 		text_desc_len = id3v2_strlen (text_encode, text_desc, csize - 4);
 
@@ -1687,11 +1683,9 @@ parse_id3v24 (const gchar           *data,
 	gint unsync;
 	gint ext_header;
 	gint experimental;
-	gint footer;
 	guint tsize;
 	guint pos;
 	guint ext_header_size;
-	guint padding;
 
 	if ((size < 16) ||
 	    (data[0] != 0x49) ||
@@ -1705,7 +1699,6 @@ parse_id3v24 (const gchar           *data,
 	unsync = (data[5] & 0x80) > 0;
 	ext_header = (data[5] & 0x40) > 0;
 	experimental = (data[5] & 0x20) > 0;
-	footer = (data[5] & 0x10) > 0;
 	tsize = (((data[6] & 0x7F) << 21) |
 	         ((data[7] & 0x7F) << 14) |
 	         ((data[8] & 0x7F) << 7) |
@@ -1716,7 +1709,6 @@ parse_id3v24 (const gchar           *data,
 	}
 
 	pos = 10;
-	padding = 0;
 
 	if (ext_header) {
 		ext_header_size = (((data[10] & 0x7F) << 21) |
diff --git a/src/tracker-extract/tracker-extract-msoffice.c b/src/tracker-extract/tracker-extract-msoffice.c
index 61132e7..aeee999 100644
--- a/src/tracker-extract/tracker-extract-msoffice.c
+++ b/src/tracker-extract/tracker-extract-msoffice.c
@@ -1255,7 +1255,6 @@ xls_get_extended_record_string (GsfInput  *stream,
                                 GString  **p_content)
 {
 	ExcelExtendedStringRecord *record;
-	guint32 cst_total;
 	guint32 cst_unique;
 	guint parsing_record = 0;
 	guint8 tmp_buffer[4] = { 0 };
@@ -1283,7 +1282,7 @@ xls_get_extended_record_string (GsfInput  *stream,
 
 	/* Reading cst total */
 	gsf_input_read (stream, 4, tmp_buffer);
-	cst_total = read_32bit (tmp_buffer);
+	read_32bit (tmp_buffer);
 
 	/* Reading cst unique */
 	gsf_input_read (stream, 4, tmp_buffer);
diff --git a/src/tracker-extract/tracker-extract-oasis.c b/src/tracker-extract/tracker-extract-oasis.c
index 2f5671e..6ad84b5 100644
--- a/src/tracker-extract/tracker-extract-oasis.c
+++ b/src/tracker-extract/tracker-extract-oasis.c
@@ -278,11 +278,9 @@ xml_start_element_handler_metadata (GMarkupParseContext  *context,
 		data->current = ODT_TAG_TYPE_COMMENTS;
 	} else if (g_ascii_strcasecmp (element_name, "meta:document-statistic") == 0) {
 		TrackerSparqlBuilder *metadata;
-		const gchar *uri;
 		const gchar **a, **v;
 
 		metadata = data->metadata;
-		uri = data->uri;
 
 		for (a = attribute_names, v = attribute_values; *a; ++a, ++v) {
 			if (g_ascii_strcasecmp (*a, "meta:word-count") == 0) {
@@ -322,12 +320,10 @@ xml_text_handler_metadata (GMarkupParseContext  *context,
 {
 	ODTMetadataParseInfo *data;
 	TrackerSparqlBuilder *metadata;
-	const gchar *uri;
 	gchar *date;
 
 	data = user_data;
 	metadata = data->metadata;
-	uri = data->uri;
 
 	switch (data->current) {
 	case ODT_TAG_TYPE_TITLE:



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