From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=49432 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9IGh-0003Yj-V2 for qemu-devel@nongnu.org; Fri, 22 Oct 2010 10:06:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P9IGg-0001Ts-DR for qemu-devel@nongnu.org; Fri, 22 Oct 2010 10:06:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45408) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P9IGg-0001Tc-3S for qemu-devel@nongnu.org; Fri, 22 Oct 2010 10:06:50 -0400 From: Luiz Capitulino Date: Fri, 22 Oct 2010 12:06:34 -0200 Message-Id: <1287756396-13100-3-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1287756396-13100-1-git-send-email-lcapitulino@redhat.com> References: <1287756396-13100-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PATCH 2/4] Silence compiler warning in json test case List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 -- 1.7.3.1.127.g1bb28