[glib/glib-2-28] Silence a few unused variable warnings



commit 4f82aa99d74d52659af32f71f2c1053551b50052
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Feb 17 23:59:58 2011 -0500

    Silence a few unused variable warnings

 glib/tests/gvariant.c |    2 +-
 glib/tests/keyfile.c  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glib/tests/gvariant.c b/glib/tests/gvariant.c
index 7fc96e5..a7ca694 100644
--- a/glib/tests/gvariant.c
+++ b/glib/tests/gvariant.c
@@ -3838,7 +3838,7 @@ test_bytestring (void)
   GVariant *value;
   gchar **strv;
   gchar *str;
-  const gchar *const_str;
+  const gchar *const_str G_GNUC_UNUSED;
   GVariant *untrusted_empty;
 
   strv = g_strsplit (test_string, ",", 0);
diff --git a/glib/tests/keyfile.c b/glib/tests/keyfile.c
index f7a90b7..fcda450 100644
--- a/glib/tests/keyfile.c
+++ b/glib/tests/keyfile.c
@@ -892,7 +892,7 @@ test_group_names (void)
   GKeyFile *keyfile;
   GError *error = NULL;
   const gchar *data;
-  gchar *value;
+  gchar *value G_GNUC_UNUSED;
 
   /* [ in group name */
   data = "[a[b]\n"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]