diff options
author | Kevin Wolf <kwolf@redhat.com> | 2012-06-15 13:43:18 +0200 |
---|---|---|
committer | malc <av1474@comtv.ru> | 2012-06-15 15:52:45 +0400 |
commit | 1417d7e40eaf1418333fb2ec43d0c7f4245b10e7 (patch) | |
tree | da949942ea1929d9185757c2e69086cd6232277e | |
parent | da9fa17ee9bece7e7ef54681832427c1d6baf554 (diff) | |
download | qemu-1417d7e40eaf1418333fb2ec43d0c7f4245b10e7.tar.gz qemu-1417d7e40eaf1418333fb2ec43d0c7f4245b10e7.tar.bz2 qemu-1417d7e40eaf1418333fb2ec43d0c7f4245b10e7.zip |
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 <av1474@comtv.ru>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: malc <av1474@comtv.ru>
-rw-r--r-- | block/qcow2-cluster.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index 4b3345b11b..c173fcd488 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); |