[libvirt] [PATCH v2 02/42] util: handle missing switch enum cases
John Ferlan
jferlan at redhat.com
Mon Feb 19 18:35:18 UTC 2018
On 02/15/2018 11:43 AM, Daniel P. Berrangé wrote:
> Ensure all enum cases are listed in switch statements.
and in some cases force an error if something unexpected is found.
[not necessary to add, especially since it's repeatable throughout the
series so far, but figured I'd note it at least B-)]
>
> Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
> ---
> src/util/virconf.c | 13 ++++++++++++-
> src/util/virfirewall.c | 7 +++++--
> src/util/virlog.c | 10 +++++++++-
> src/util/virnetdevvportprofile.c | 11 ++++++++++-
> 4 files changed, 36 insertions(+), 5 deletions(-)
>
Reviewed-by: John Ferlan <jferlan at redhat.com>
John
More information about the libvir-list
mailing list