summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2009-03-01 20:13:31 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-03-01 20:13:31 +0100
commite571138ef60bbe7a983e1d0a2cf86dabcf8c2e08 (patch)
tree06b32a11ee46b71f73cff126069e2ef6dbc9aabb
parent8c4584aa565e0298c39c1603bb65dcd4bc678380 (diff)
xdgmime: Fix unused variable compiler warning
-rw-r--r--gst/xdgmime/xdgmime/xdgmimemagic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/xdgmime/xdgmime/xdgmimemagic.c b/gst/xdgmime/xdgmime/xdgmimemagic.c
index 4c2c0bba8..6aaa8638b 100644
--- a/gst/xdgmime/xdgmime/xdgmimemagic.c
+++ b/gst/xdgmime/xdgmime/xdgmimemagic.c
@@ -443,7 +443,9 @@ _xdg_mime_magic_parse_magic_line (FILE * magic_file, XdgMimeMagicMatch * match)
if (c == '\n') {
/* We clean up the matchlet, byte swapping if needed */
if (matchlet->word_size > 1) {
+#if G_BYTE_ORDER == G_LITTLE_ENDIAN
int i;
+#endif
if (matchlet->value_length % matchlet->word_size != 0) {
_xdg_mime_magic_matchlet_free (matchlet);
return XDG_MIME_MAGIC_ERROR;