]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Make switch statements more strict
authorAndrea Bolognani <abologna@redhat.com>
Tue, 21 Feb 2017 19:13:35 +0000 (20:13 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 22 Feb 2017 17:55:55 +0000 (18:55 +0100)
commit50d3595390bf573e6567a698d44ef4873de00140
treee60862ff55aae5eb73a60e62ebfd9df738f80d1b
parentc6a0fb8e71bc44745332a61ce73959a84e93f9c4
qemu: Make switch statements more strict

When switching over the values in the virDomainControllerModelPCI
enumeration, make sure the proper cast is in place so that the
compiler can warn us when the coverage is not exaustive.

For the same reason, fold some unstructured checks (performed by
comparing directly against some values in the enumeration) inside
an existing switch statement.
src/qemu/qemu_command.c