]> git.ipfire.org Git - thirdparty/qemu.git/commit
qcow2: Silence false warning
authorKevin Wolf <kwolf@redhat.com>
Fri, 15 Jun 2012 11:43:18 +0000 (13:43 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 25 Jun 2012 13:53:20 +0000 (08:53 -0500)
commitb4fcb4b4995b292b6013600af78d37416c6ebb34
tree2a6ee6faba62a01d8f9c55d915a0d3351e4e53ed
parent7672b714b28e3d49f73c605873404bf6f644c2b2
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>
(cherry picked from commit 1417d7e40eaf1418333fb2ec43d0c7f4245b10e7)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/qcow2-cluster.c