From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJkhO-0001C5-Qk for qemu-devel@nongnu.org; Mon, 27 Jul 2015 11:52:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZJkhN-0004jB-NC for qemu-devel@nongnu.org; Mon, 27 Jul 2015 11:52:18 -0400 From: Max Reitz Date: Mon, 27 Jul 2015 17:51:34 +0200 Message-Id: <1438012300-25164-5-git-send-email-mreitz@redhat.com> In-Reply-To: <1438012300-25164-1-git-send-email-mreitz@redhat.com> References: <1438012300-25164-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH v9 04/10] qcow2: Use abort() instead of assert(false) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-block@nongnu.org Cc: Kevin Wolf , Alberto Garcia , qemu-devel@nongnu.org, Max Reitz , Stefan Hajnoczi Signed-off-by: Max Reitz Reviewed-by: Eric Blake Reviewed-by: Stefan Hajnoczi Reviewed-by: Alberto Garcia --- block/qcow2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index 3bcb96e..a7f50db 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -2751,9 +2751,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++; -- 2.4.6