[glib: 1/4] xdgmime: Fix unused-variable warning
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/4] xdgmime: Fix unused-variable warning
- Date: Tue, 25 Jan 2022 19:45:03 +0000 (UTC)
commit d4cbe9ce4e855efc15ba0605dddaa04d401f3cc6
Author: Pablo Correa Gómez <ablocorrea hotmail com>
Date: Tue Jan 18 16:29:28 2022 +0100
xdgmime: Fix unused-variable warning
../gio/xdgmime/xdgmimemagic.c:489:24: warning:
unused variable 'i' [-Wunused-variable]
489 | unsigned int i;
| ^
gio/xdgmime/xdgmimemagic.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gio/xdgmime/xdgmimemagic.c b/gio/xdgmime/xdgmimemagic.c
index 08b2c6da4..dcee0fd59 100644
--- a/gio/xdgmime/xdgmimemagic.c
+++ b/gio/xdgmime/xdgmimemagic.c
@@ -486,7 +486,9 @@ _xdg_mime_magic_parse_magic_line (FILE *magic_file,
/* We clean up the matchlet, byte swapping if needed */
if (matchlet->word_size > 1)
{
+#if LITTLE_ENDIAN
unsigned int i;
+#endif
if (matchlet->value_length % matchlet->word_size != 0)
{
_xdg_mime_magic_matchlet_free (matchlet);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]