From: Jan Kiszka Date: Sat, 16 Oct 2010 17:42:43 +0000 (+0200) Subject: Silence compiler warning in json test case X-Git-Tag: qemu-xen-4.2.0~2152^2~2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e7a06af838a45be4f92e655fd4628e3351a09c98;p=qemu-upstream-4.2-testing.git Silence compiler warning in json test case This avoids error: zero-length gnu_printf format string Signed-off-by: Jan Kiszka Signed-off-by: Luiz Capitulino --- diff --git a/check-qjson.c b/check-qjson.c index 0b60e45fa..64fcdcb4a 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