LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File fix-set-but-not-used.patch of Package json-c (Project home:lazedo:kamailio-rabbit-0-8)

diff -Nur json-c-0.12.1/tests/testReplaceExisting.c new/tests/testReplaceExisting.c
--- json-c-0.12.1/tests/testReplaceExisting.c	2016-06-07 05:33:58.000000000 +0200
+++ new/tests/testReplaceExisting.c	2016-07-18 20:13:24.101728480 +0200
@@ -24,6 +24,7 @@
 	int orig_count = 0;
 	json_object_object_foreach(my_object, key0, val0)
 	{
+		(void) val0;
 		printf("Key at index %d is [%s]", orig_count, key0);
 		if (strcmp(key0, "deleteme") == 0)
 		{
@@ -41,6 +42,7 @@
 	orig_count = 0;
 	json_object_object_foreach(my_object, key, val)
 	{
+		(void) val;
 		printf("Key at index %d is [%s]\n", orig_count, key);
 		orig_count++;
 		if (strcmp(key, "foo2") != 0)
@@ -56,6 +58,7 @@
 	int retval = 0;
 	json_object_object_foreach(my_object, key2, val2)
 	{
+		(void) val2;
 		printf("Key at index %d is [%s]\n", new_count, key2);
 		new_count++;
 		if (strcmp(key2, "foo2") != 0)