From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpGaY-0008C1-Ck for qemu-devel@nongnu.org; Fri, 14 Nov 2014 08:07:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XpGaS-0003Ln-50 for qemu-devel@nongnu.org; Fri, 14 Nov 2014 08:06:58 -0500 Received: from mx1.redhat.com ([209.132.183.28]:44199) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpGaR-0003Ld-Se for qemu-devel@nongnu.org; Fri, 14 Nov 2014 08:06:52 -0500 From: Max Reitz Date: Fri, 14 Nov 2014 14:06:08 +0100 Message-Id: <1415970374-16811-16-git-send-email-mreitz@redhat.com> In-Reply-To: <1415970374-16811-1-git-send-email-mreitz@redhat.com> References: <1415970374-16811-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH v2 15/21] qcow2: Use abort() instead of assert(false) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Peter Lieven , Stefan Hajnoczi , Max Reitz Signed-off-by: Max Reitz Reviewed-by: Eric Blake --- block/qcow2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index e82120c..423af48 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -2718,9 +2718,9 @@ static int qcow2_amend_options(BlockDriverState *bs, QemuOpts *opts, error_report("Cannot change refcount entry width"); return -ENOTSUP; } else { - /* if this assertion fails, this probably means a new option was + /* if this point is reached, this probably means a new option was * added without having it covered here */ - assert(false); + abort(); } desc++; -- 1.9.3