]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: hostdev: Enforce enum-in-switch compile-time checks
authorErik Skultety <eskultet@redhat.com>
Thu, 9 Mar 2017 09:20:42 +0000 (10:20 +0100)
committerErik Skultety <eskultet@redhat.com>
Mon, 27 Mar 2017 13:39:35 +0000 (15:39 +0200)
commit83836d57c151529ae8b9538b9aeada44f5ab8193
tree3511af5022aa2382c4c71ebb34d7731b3d52606d
parent044198476adbda1c6acf6b65e3277a7f93e09786
conf: hostdev: Enforce enum-in-switch compile-time checks

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 <eskultet@redhat.com>
src/conf/domain_conf.c