From: Jan Kiszka Date: Sat, 16 Oct 2010 17:42:43 +0000 (+0200) Subject: Silence compiler warning in json test case X-Git-Tag: TizenStudio_2.0_p2.3~3978^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=30db0ef5c31f585314dad091423c6330eb213e7d;p=sdk%2Femulator%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 0b60e45..64fcdcb 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