libvirt/m4
Daniel P. Berrangé 67966ad518 m4: enforce that all enum cases are listed in switch statements
As a general rule any time we switch() on something that is an enum, we
want to have a case for every enum constant. The -Wswitch warning will
report any switch where we've violated this rule, except if that switch
has a default case.

Unfortunately it is reasonable to want to list all enum constants *and*
also have a default case. To get a warning in that scenario requires
that we turn on -Wswitch-enum.

In a few cases where we explicitly don't want to list all enum cases, we
can discard the enum type checking by casting the value to a plain int.

Reviewed-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2018-02-21 16:59:48 +00:00
..
virt-acl.m4 m4: Fix missing with_acl variable 2017-05-26 11:37:44 +02:00
virt-apparmor.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-arg.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-atomic.m4 configure: move atomic check to its own file 2016-12-21 15:39:38 +01:00
virt-attr.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-audit.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-avahi.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-bash-completion.m4 m4: Don't enable bash-completion by default 2018-01-12 10:43:30 +01:00
virt-blkid.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-capng.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-chrdev-lock-files.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-compile-pie.m4 Fix '-pie' build with clang 2016-02-09 13:29:53 +01:00
virt-compile-warnings.m4 m4: enforce that all enum cases are listed in switch statements 2018-02-21 16:59:48 +00:00
virt-curl.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-dbus.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-debug.m4 configure: move debug check to its own file 2016-12-21 15:39:40 +01:00
virt-default-editor.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-devmapper.m4 m4/virt-devmapper: use LIBVIRT_CHECK_(PKG|LIB) 2016-12-21 15:39:39 +01:00
virt-dlopen.m4 configure: move dlopen check to its own file 2016-12-21 15:39:38 +01:00
virt-driver-bhyve.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-driver-esx.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-driver-hyperv.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-driver-interface.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-driver-libvirtd.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-driver-libxl.m4 libxl: add explicit linkage to xenstore library 2018-01-25 09:30:54 +00:00
virt-driver-lxc.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-driver-modules.m4 make: Drop building without driver modules 2017-07-27 12:00:35 +02:00
virt-driver-network.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-driver-openvz.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-driver-phyp.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-driver-qemu.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-driver-remote.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-driver-test.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-driver-uml.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-driver-vbox.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-driver-vmware.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-driver-vz.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-driver-xen.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-driver-xenapi.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-dtrace.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-external-programs.m4 docs: make xmllint & xsltproc compulsory 2017-08-02 17:00:11 +01:00
virt-firewalld.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-fuse.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-gluster.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-gnutls.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-hal.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-host-validate.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-init-script.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-lib.m4 m4/virt-arg: Move LIBVIRT_ARG_* macros to their own file 2016-12-22 15:20:05 +01:00
virt-libnl.m4 configure: move libnl check to its own file 2016-12-21 15:39:39 +01:00
virt-libpcap.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-libssh.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-libxml.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-linker-no-indirect.m4 Check for --no-copy-dt-needed linker flag 2013-08-22 16:17:36 +02:00
virt-linker-no-undefined.m4 build: passing the "-z defs" linker flag to prevent undefined symbols 2018-02-09 11:05:10 +00:00
virt-linker-relro.m4 Simplify RELRO_LDFLAGS 2013-08-22 16:17:35 +02:00
virt-loader-nvram.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-login-shell.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-macvtap.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-netcf.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-nss.m4 configure: fix typo in nss error message 2017-07-10 10:00:43 +02:00
virt-numactl.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-numad.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-nwfilter.m4 configure: move nwfilter check to its own file 2016-12-21 15:39:39 +01:00
virt-openwsman.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-parted.m4 m4/virt-parted: use LIBVIRT_CHECK_PKG 2016-12-21 15:39:40 +01:00
virt-pciaccess.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-pm-utils.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-polkit.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-pthread.m4 configure: move pthread check it its own file 2016-12-21 15:39:38 +01:00
virt-readline.m4 m4: Check for rl_completion_quote_character 2018-01-15 17:59:26 +01:00
virt-result.m4 Add some autoconf helper macros for checking for libraries 2013-01-11 11:03:22 +00:00
virt-sanlock.m4 locking: Add support for sanlock_strerror 2017-04-27 11:44:11 +02:00
virt-sasl.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-secdriver-apparmor.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-secdriver-selinux.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-selinux.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-ssh2.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-storage-dir.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-storage-disk.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-storage-fs.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-storage-gluster.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-storage-iscsi.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-storage-lvm.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-storage-mpath.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-storage-rbd.m4 virt-storage-rbd: fix typo s/RDB/RBD/ in configure check 2017-04-19 15:01:17 +01:00
virt-storage-scsi.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-storage-sheepdog.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-storage-vstorage.m4 configure: Fix copy-paste error in vstorage backend check 2017-01-27 10:37:56 +01:00
virt-storage-zfs.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-sysctl.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-tls-priority.m4 configure: fix indentation in TLS priority result 2017-01-24 17:24:14 +01:00
virt-udev.m4 udev: Fix build on older platforms 2017-05-31 13:28:24 +02:00
virt-virtualport.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-win-common.m4 configure: move windows common check to its own file 2016-12-21 15:39:39 +01:00
virt-win-cygwin.m4 configure: move Cygwin check to its own file 2016-12-21 15:39:39 +01:00
virt-win-mingw.m4 configure: move MinGW check to its own file 2016-12-21 15:39:39 +01:00
virt-win-symbols.m4 configure: move windows symbols check to its own file 2016-12-21 15:39:39 +01:00
virt-win-windres.m4 configure: move windres check to its own file 2016-12-21 15:39:39 +01:00
virt-wireshark.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-xdr.m4 configure: move XDR check to its own file 2016-12-21 15:39:38 +01:00
virt-xml-catalog.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00
virt-yajl.m4 m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros 2016-12-22 15:20:05 +01:00