From b4fcb4b4995b292b6013600af78d37416c6ebb34 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Fri, 15 Jun 2012 13:43:18 +0200 Subject: qcow2: Silence false warning Some gcc versions seem not to be able to figure out that the switch statement covers all possible values and that c is therefore always initialised. Add a default branch for them. Reported-by: malc Signed-off-by: Kevin Wolf Signed-off-by: malc (cherry picked from commit 1417d7e40eaf1418333fb2ec43d0c7f4245b10e7) Signed-off-by: Michael Roth --- block/qcow2-cluster.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'block/qcow2-cluster.c') diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index 4b3345b11..c173fcd48 100644 --- a/block/qcow2-cluster.c +++ b/block/qcow2-cluster.c @@ -471,6 +471,8 @@ int qcow2_get_cluster_offset(BlockDriverState *bs, uint64_t offset, QCOW_OFLAG_COMPRESSED | QCOW_OFLAG_ZERO); *cluster_offset &= L2E_OFFSET_MASK; break; + default: + abort(); } qcow2_cache_put(bs, s->l2_table_cache, (void**) &l2_table); -- cgit v1.2.3