[libvirt] [PATCH v4 01/14] conf: hostdev: Enforce enum-in-switch compile-time checks

2017-03-22 Thread Erik Skultety
Enforce virDomainHostdevSubsysType checking during compilation. Again, one of a few spots in our code where we should enforce the typecast to the enum type, thus not forgetting to update *all* switch occurrences dealing with the give enum. Signed-off-by: Erik Skultety --- src/conf/domain_conf.c

Re: [libvirt] [PATCH v4 01/14] conf: hostdev: Enforce enum-in-switch compile-time checks

2017-03-23 Thread Laine Stump
On 03/22/2017 11:27 AM, Erik Skultety wrote: > Enforce virDomainHostdevSubsysType checking during compilation. Again, > one of a few spots in our code where we should enforce the typecast to > the enum type, thus not forgetting to update *all* switch occurrences > dealing with the give enum. > > S