[json-glib] Fix compiler warnings (remove unused variables)



commit d664f886372afbe1d54e633240e7b7e06ebc45c8
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Tue Oct 27 17:40:03 2009 +0000

    Fix compiler warnings (remove unused variables)

 tests/test-generator.c      |    4 ++--
 tests/test-serialize-full.c |    1 -
 2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/tests/test-generator.c b/tests/test-generator.c
index 6aa7dc6..864dbb9 100644
--- a/tests/test-generator.c
+++ b/tests/test-generator.c
@@ -125,7 +125,7 @@ static void
 test_nested_array (void)
 {
   JsonGenerator *generator = json_generator_new ();
-  JsonNode *root, *val, *nested_val;
+  JsonNode *root, *val;
   JsonArray *array, *nested;
   GValue value = { 0, };
   gchar *data;
@@ -175,7 +175,7 @@ static void
 test_simple_object (void)
 {
   JsonGenerator *generator = json_generator_new ();
-  JsonNode *root, *val;
+  JsonNode *root;
   JsonObject *object;
   gchar *data;
   gsize len;
diff --git a/tests/test-serialize-full.c b/tests/test-serialize-full.c
index 7c42dbd..b23a46a 100644
--- a/tests/test-serialize-full.c
+++ b/tests/test-serialize-full.c
@@ -150,7 +150,6 @@ test_object_serialize_property (JsonSerializable *serializable,
     {
       TestBoxed *boxed;
       JsonObject *obj;
-      JsonNode *val;
 
       retval = json_node_new (JSON_NODE_OBJECT);
       obj = json_object_new ();



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