From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60753) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLHR9-00033S-2g for qemu-devel@nongnu.org; Tue, 10 Feb 2015 15:29:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLHR2-00070s-KX for qemu-devel@nongnu.org; Tue, 10 Feb 2015 15:29:35 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49476) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLHR2-00070e-Dk for qemu-devel@nongnu.org; Tue, 10 Feb 2015 15:29:28 -0500 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t1AKTRvC009429 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 10 Feb 2015 15:29:28 -0500 From: Max Reitz Date: Tue, 10 Feb 2015 15:29:00 -0500 Message-Id: <1423600146-7642-19-git-send-email-mreitz@redhat.com> In-Reply-To: <1423600146-7642-1-git-send-email-mreitz@redhat.com> References: <1423600146-7642-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH v6 18/24] 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 , Stefan Hajnoczi , Max Reitz Signed-off-by: Max Reitz Reviewed-by: Eric Blake Reviewed-by: Stefan Hajnoczi --- block/qcow2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index f1b1c2c..c610c6c 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -2730,9 +2730,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.1.0