From e7a06af838a45be4f92e655fd4628e3351a09c98 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Sat, 16 Oct 2010 19:42:43 +0200 Subject: [PATCH] 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 --- check-qjson.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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