[libvirt] [PATCH 01/20] driver: Add typedef for the anonymous enum used for driver features

John Ferlan jferlan at redhat.com
Wed Mar 14 21:26:24 UTC 2018



On 03/08/2018 07:20 AM, Marc Hartmayer wrote:
> Add typedef for the anonymous enum used for the driver features. This
> allows the usage of the type in a switch statement and taking
> advantage of the compilers feature to detect uncovered cases.
> 
> Signed-off-by: Marc Hartmayer <mhartmay at linux.vnet.ibm.com>
> Reviewed-by: Boris Fiuczynski <fiuczy at linux.vnet.ibm.com>
> ---
>  src/esx/esx_driver.c                | 18 ++++++++++++++++--
>  src/libvirt_internal.h              |  4 ++--
>  src/libxl/libxl_driver.c            | 13 ++++++++++++-
>  src/lxc/lxc_driver.c                | 24 +++++++++++++++++++-----
>  src/openvz/openvz_driver.c          | 15 ++++++++++++++-
>  src/qemu/qemu_driver.c              |  8 +++++++-
>  src/remote/remote_daemon_dispatch.c | 19 ++++++++++++++++---
>  src/vz/vz_driver.c                  | 15 ++++++++++++++-
>  src/xen/xen_driver.c                | 15 ++++++++++++++-
>  9 files changed, 114 insertions(+), 17 deletions(-)
> 

Reviewed-by: John Ferlan <jferlan at redhat.com>

John

(I forgot that I'd turned off deadcode detection in coverity; otherwise,
it surely would have complained in remoteDispatchConnectSupportsFeature
that it's not possible to get to the case since the code already checked
for VIR_DRV_FEATURE_PROGRAM_KEEPALIVE




More information about the libvir-list mailing list