libvirt/tools
Daniel P. Berrange 5d84f5961b Add ATTRIBUTE_FALLTHROUGH for switch cases without break
In GCC 7 there is a new warning triggered when a switch
case has a conditional statement (eg if ... else...) and
some of the code paths fallthrough to the next switch
statement. e.g.

conf/domain_conf.c: In function 'virDomainChrEquals':
conf/domain_conf.c:14926:12: error: this statement may fall through [-Werror=implicit-fallthrough=]
         if (src->targetTypeAttr != tgt->targetTypeAttr)
            ^
conf/domain_conf.c:14928:5: note: here
     case VIR_DOMAIN_CHR_DEVICE_TYPE_CONSOLE:
     ^~~~
conf/domain_conf.c: In function 'virDomainChrDefFormat':
conf/domain_conf.c:22143:12: error: this statement may fall through [-Werror=implicit-fallthrough=]
         if (def->targetTypeAttr) {
            ^
conf/domain_conf.c:22151:5: note: here
     default:
     ^~~~~~~

GCC introduced a __attribute__((fallthrough)) to let you
indicate that this is intentionale behaviour rather than
a bug.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2017-02-23 10:11:16 +00:00
..
nss nss: Remove RES_USE_INET6 usage 2017-01-19 13:46:20 +01:00
wireshark wireshark: Drop glib dependency 2016-08-01 12:02:51 +02:00
libvirt_win_icon_16x16.ico
libvirt_win_icon_32x32.ico
libvirt_win_icon_48x48.ico
libvirt_win_icon_64x64.ico
libvirt-guests.init.in
libvirt-guests.service.in libvirtd: systemd: add special target for system shutdown 2016-11-23 11:13:53 +03:00
libvirt-guests.sh.in tools: Exclude Xen dom0 from libvirt-guests.sh list 2016-10-10 16:52:08 +08:00
libvirt-guests.sysconf
Makefile.am nss: Introduce libvirt-guest module 2016-12-06 13:34:00 +01:00
virsh_win_icon.rc
virsh-console.c
virsh-console.h
virsh-domain-monitor.c qemu: expand domain memory statistics with 'last-update' timestamp 2016-07-26 17:30:01 +02:00
virsh-domain-monitor.h
virsh-domain.c virsh: Implement command for virDomainSetVcpu called setvcpu 2017-02-21 15:06:59 +01:00
virsh-domain.h
virsh-edit.c Add ATTRIBUTE_FALLTHROUGH for switch cases without break 2017-02-23 10:11:16 +00:00
virsh-host.c virsh: maxvcpus: Always fall back to the old command if domain caps fail 2016-12-09 15:57:16 +01:00
virsh-host.h
virsh-interface.c tools: Replace vshPrint with vshPrintExtra on places we forgot about 2016-11-14 12:14:11 +01:00
virsh-interface.h
virsh-network.c tools: Replace vshPrint with vshPrintExtra on places we forgot about 2016-11-14 12:14:11 +01:00
virsh-network.h
virsh-nodedev.c nodedev: Introduce new drm cap 2017-02-17 16:09:15 +01:00
virsh-nodedev.h
virsh-nwfilter.c tools: Replace vshPrint with vshPrintExtra on places we forgot about 2016-11-14 12:14:11 +01:00
virsh-nwfilter.h
virsh-pool.c storage: Introduce Virtuozzo vstorage backend 2017-01-26 10:43:42 -05:00
virsh-pool.h
virsh-secret.c secret: add support for value change events 2017-01-09 16:42:04 +00:00
virsh-secret.h
virsh-snapshot.c virstring: Unify string list function names 2016-11-25 13:54:05 +01:00
virsh-snapshot.h
virsh-volume.c virsh: Allow display of the physical volume size 2016-12-20 13:54:03 -05:00
virsh-volume.h
virsh.c storage: Introduce Virtuozzo vstorage backend 2017-01-26 10:43:42 -05:00
virsh.h virsh: Add support for text based polkit authentication 2016-03-01 06:50:16 -05:00
virsh.pod virsh: Alter formatting a bit for output of domstats fields 2017-02-22 15:18:46 -05:00
virt-admin.c virt-admin: Wire-up the logging APIs 2016-12-15 10:36:23 +01:00
virt-admin.h
virt-admin.pod virt-admin: Wire-up the logging APIs 2016-12-15 10:36:23 +01:00
virt-host-validate-common.c virstring: Unify string list function names 2016-11-25 13:54:05 +01:00
virt-host-validate-common.h headers: Remove unnecessary keyword extern from function declaration 2016-05-11 09:06:32 +02:00
virt-host-validate-lxc.c host-validate: Fix suggestion for missing cpu cgroup 2016-03-30 09:41:54 +02:00
virt-host-validate-lxc.h headers: Remove unnecessary keyword extern from function declaration 2016-05-11 09:06:32 +02:00
virt-host-validate-qemu.c virt-host-validate: fix build with clang 2016-06-14 08:02:45 +03:00
virt-host-validate-qemu.h headers: Remove unnecessary keyword extern from function declaration 2016-05-11 09:06:32 +02:00
virt-host-validate.c build: Extract pod from source files 2016-04-25 15:40:43 +02:00
virt-host-validate.pod man: Fix links 2016-04-25 15:40:44 +02:00
virt-login-shell.c virstring: Unify string list function names 2016-11-25 13:54:05 +01:00
virt-login-shell.conf virt-login-shell: add ability to auto-detect shell from container 2016-06-10 11:03:02 +01:00
virt-login-shell.pod virt-login-shell: add ability to auto-detect shell from container 2016-06-10 11:03:02 +01:00
virt-pki-validate.in build: Extract pod from source files 2016-04-25 15:40:43 +02:00
virt-pki-validate.pod man: Fix links 2016-04-25 15:40:44 +02:00
virt-sanlock-cleanup.in build: Extract pod from source files 2016-04-25 15:40:43 +02:00
virt-sanlock-cleanup.pod man: Fix links 2016-04-25 15:40:44 +02:00
virt-xml-validate.in build: Extract pod from source files 2016-04-25 15:40:43 +02:00
virt-xml-validate.pod man: Fix links 2016-04-25 15:40:44 +02:00
vsh.c vsh: Mark some function arguments as unused 2016-12-09 10:52:29 +01:00
vsh.h virt-admin: Tweak command parsing logic so that aliases point to new commands 2016-09-20 15:17:46 +02:00