summaryrefslogtreecommitdiff
path: root/check-qjson.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@web.de>2010-10-16 19:42:43 +0200
committerLuiz Capitulino <lcapitulino@redhat.com>2010-10-22 10:08:37 -0200
commite7a06af838a45be4f92e655fd4628e3351a09c98 (patch)
tree1ffa95dba93a690839c020eefc5134d5267519eb /check-qjson.c
parent7af72c24aed92bfb7ebc999ddd509c3d8c8b3f83 (diff)
downloadqemu-e7a06af838a45be4f92e655fd4628e3351a09c98.tar.gz
qemu-e7a06af838a45be4f92e655fd4628e3351a09c98.tar.bz2
qemu-e7a06af838a45be4f92e655fd4628e3351a09c98.zip
Silence compiler warning in json test case
This avoids error: zero-length gnu_printf format string Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'check-qjson.c')
-rw-r--r--check-qjson.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/check-qjson.c b/check-qjson.c
index 0b60e45fa6..64fcdcb4ad 100644
--- a/check-qjson.c
+++ b/check-qjson.c
@@ -639,7 +639,9 @@ END_TEST
START_TEST(empty_input)
{
- QObject *obj = qobject_from_json("");
+ const char *empty = "";
+
+ QObject *obj = qobject_from_json(empty);
fail_unless(obj == NULL);
}
END_TEST