xdgmime: Fix unused variable compiler warning
authorLRN <lrn1986@gmail.com>
Sun, 1 Mar 2009 19:13:31 +0000 (20:13 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 1 Mar 2009 19:13:31 +0000 (20:13 +0100)
gst/xdgmime/xdgmime/xdgmimemagic.c

index 4c2c0bba8a46a9445468c1cbbef3fc59196e9635..6aaa8638b849ae8c650c80fb4917c3e807c9d38b 100644 (file)
@@ -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;