From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N8gVc-0007wb-UY for qemu-devel@nongnu.org; Thu, 12 Nov 2009 15:43:13 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N8gVY-0007tZ-Af for qemu-devel@nongnu.org; Thu, 12 Nov 2009 15:43:12 -0500 Received: from [199.232.76.173] (port=33544 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8gVY-0007tQ-3g for qemu-devel@nongnu.org; Thu, 12 Nov 2009 15:43:08 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57692) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N8gVX-0006ih-II for qemu-devel@nongnu.org; Thu, 12 Nov 2009 15:43:07 -0500 From: Luiz Capitulino Date: Thu, 12 Nov 2009 18:42:31 -0200 Message-Id: <1258058554-22872-7-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1258058554-22872-1-git-send-email-lcapitulino@redhat.com> References: <1258058554-22872-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PATCH 6/9] QJSON: Fix compile error List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, kraxel@redhat.com, armbru@redhat.com Add QTYPE_QERROR handling in the to_json() switch, otherwise GCC will complain. We just abort(), as QError design is not finished yet. Signed-off-by: Luiz Capitulino --- qjson.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/qjson.c b/qjson.c index 491b61e..ca4fe7c 100644 --- a/qjson.c +++ b/qjson.c @@ -239,6 +239,9 @@ static void to_json(const QObject *obj, QString *str) } case QTYPE_NONE: break; + case QTYPE_QERROR: + fprintf(stderr, "qerror can't be emitted yet\n"); + abort(); } } -- 1.6.5.2.155.gbb47