From patchwork Fri Oct 22 14:06:34 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/4] Silence compiler warning in json test case Date: Fri, 22 Oct 2010 04:06:34 -0000 From: Luiz Capitulino X-Patchwork-Id: 68860 Message-Id: <1287756396-13100-3-git-send-email-lcapitulino@redhat.com> To: anthony@codemonkey.ws Cc: Jan Kiszka , Jan Kiszka , qemu-devel@nongnu.org, Luiz Capitulino From: Jan Kiszka This avoids error: zero-length gnu_printf format string Signed-off-by: Jan Kiszka Signed-off-by: Luiz Capitulino --- check-qjson.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) 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