From: Jan Kiszka Date: Sat, 16 Oct 2010 17:42:43 +0000 (+0200) Subject: Silence compiler warning in json test case X-Git-Tag: v0.14.0-rc0~520^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e7a06af838a45be4f92e655fd4628e3351a09c98;p=thirdparty%2Fqemu.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 0b60e45fa64..64fcdcb4ad0 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