[tracker] tracker-extract: Fix C warnings



commit 4776ce461c77f33e07142d634628dbad1e505835
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 2ab3796..1cf61f7 100644
--- a/src/tracker-extract/tracker-extract-mp3.c
+++ b/src/tracker-extract/tracker-extract-mp3.c
@@ -1208,14 +1208,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);
 
@@ -1396,14 +1394,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);
 
@@ -1675,11 +1671,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) ||
@@ -1693,7 +1687,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) |
@@ -1704,7 +1697,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 1e2bbdf..241c8e7 100644
--- a/src/tracker-extract/tracker-extract-msoffice.c
+++ b/src/tracker-extract/tracker-extract-msoffice.c
@@ -1243,7 +1243,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 };
@@ -1271,7 +1270,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 1a565d1..be28b30 100644
--- a/src/tracker-extract/tracker-extract-oasis.c
+++ b/src/tracker-extract/tracker-extract-oasis.c
@@ -245,11 +245,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) {
@@ -289,12 +287,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]