]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Make switch statements more strict
authorAndrea Bolognani <abologna@redhat.com>
Tue, 21 Feb 2017 19:13:47 +0000 (20:13 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 22 Feb 2017 17:55:55 +0000 (18:55 +0100)
commit77edbf512701f239b406779811d6fd8bfb9156d9
tree49e2b916e5510e88072eb4f841d79ca2fa1f42b8
parent50d3595390bf573e6567a698d44ef4873de00140
conf: 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, remove the 'default' case from one of the
existing switch statements.
src/conf/domain_addr.c
src/conf/domain_conf.c