50d3595 qemu: Make switch statements more strict

Authored and Committed by Andrea Bolognani 7 years ago
    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.
    
        
file modified
+14 -14