From 164e0f89cc825bf2a83b20451643db333d2891a7 Mon Sep 17 00:00:00 2001 From: Max Reitz Date: Mon, 27 Jul 2015 17:51:34 +0200 Subject: qcow2: Use abort() instead of assert(false) Signed-off-by: Max Reitz Reviewed-by: Eric Blake Reviewed-by: Stefan Hajnoczi Reviewed-by: Alberto Garcia Signed-off-by: Kevin Wolf --- block/qcow2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'block') diff --git a/block/qcow2.c b/block/qcow2.c index 01b20d91cf..381b4f7ed3 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -2998,9 +2998,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++; -- cgit v1.2.3