]> xenbits.xensource.com Git - libvirt.git/commit
qemuProcessVerifyGuestCPU: Avoid coverity false positive
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 31 Mar 2016 14:45:11 +0000 (16:45 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 31 Mar 2016 15:25:21 +0000 (17:25 +0200)
commit382ea24b1a57d745eecf2f7aa63c7c99981eacc0
tree5c68cca5ef0fedfd51972c8cdadabba8f5bb761a
parent2cbdd64adf8b5f3ad05fb7184ccb53f3c5172778
qemuProcessVerifyGuestCPU: Avoid coverity false positive

We use _LAST items in enums to mark the last position in given
enum. Now, if and enum is passed to switch(), compiler checks
that all the values from enum occur in 'case' enumeration.
Including _LAST. But coverity spots it's a dead code. And it
really is. So to resolve this, we tend to put a comment just
above 'case ..._LAST' notifying coverity that we know this is a
dead code but we want to have it that way.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_process.c