diff --git a/block/qcow2.c b/block/qcow2.c index 0304de65a7743359bda4e52eda72d0c9fe01285a..1789af43d23c680cd3a7825bd45a2b636bdc4a7f 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -2803,6 +2803,10 @@ static ImageInfoSpecific *qcow2_get_specific_info(BlockDriverState *bs) .has_corrupt = true, .refcount_bits = s->refcount_bits, }; + } else { + /* if this assertion fails, this probably means a new version was + * added without having it covered here */ + assert(false); } return spec_info;