[gst-cvs] gst-plugins-bad: xdgmime: Fix unused variable compiler warning
Sebastian Dröge
slomo at kemper.freedesktop.org
Sun Mar 1 11:18:57 PST 2009
Module: gst-plugins-bad
Branch: master
Commit: e571138ef60bbe7a983e1d0a2cf86dabcf8c2e08
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=e571138ef60bbe7a983e1d0a2cf86dabcf8c2e08
Author: LRN <lrn1986 at gmail.com>
Date: Sun Mar 1 20:13:31 2009 +0100
xdgmime: Fix unused variable compiler warning
---
gst/xdgmime/xdgmime/xdgmimemagic.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/gst/xdgmime/xdgmime/xdgmimemagic.c b/gst/xdgmime/xdgmime/xdgmimemagic.c
index 4c2c0bb..6aaa863 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;
More information about the Gstreamer-commits
mailing list