From patchwork Fri Oct 22 14:06:34 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Capitulino X-Patchwork-Id: 68860 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B4F7AB70A7 for ; Sat, 23 Oct 2010 01:15:16 +1100 (EST) Received: from localhost ([127.0.0.1]:36279 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9IOf-0001gE-68 for incoming@patchwork.ozlabs.org; Fri, 22 Oct 2010 10:15:05 -0400 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 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o9ME6maU002994 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 22 Oct 2010 10:06:48 -0400 Received: from localhost (ovpn-113-58.phx2.redhat.com [10.3.113.58]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id o9ME6lq4025003; Fri, 22 Oct 2010 10:06:48 -0400 From: Luiz Capitulino To: anthony@codemonkey.ws 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> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: Jan Kiszka , Jan Kiszka , qemu-devel@nongnu.org, Luiz Capitulino Subject: [Qemu-devel] [PATCH 2/4] Silence compiler warning in json test case X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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