]> xenbits.xensource.com Git - libvirt.git/commit
Require a semicolon to VIR_ENUM_DECL calls
authorCole Robinson <crobinso@redhat.com>
Sun, 20 Jan 2019 16:04:56 +0000 (11:04 -0500)
committerCole Robinson <crobinso@redhat.com>
Sun, 3 Feb 2019 22:46:29 +0000 (17:46 -0500)
commit7662194bf32bee40b0dfc558344c37e5a76b12a6
tree7fdf2459b6458949150ba6e4b18b362d29ba6bc8
parent7c9dcfed5ae6d5874ea0e67e47a6871707b8446a
Require a semicolon to VIR_ENUM_DECL calls

Missing semicolon at the end of macros can confuse some analyzers
(like cppcheck <filename>), and we have a mix of semicolon and
non-semicolon usage through the code. Let's standardize on using
a semicolon for VIR_ENUM_DECL calls.

Drop the semicolon from the final statement of the macro, so
the compiler will require callers to add a semicolon.

Reviewed-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
54 files changed:
src/conf/capabilities.c
src/conf/cpu_conf.h
src/conf/domain_conf.c
src/conf/domain_conf.h
src/conf/interface_conf.h
src/conf/network_conf.c
src/conf/network_conf.h
src/conf/node_device_conf.h
src/conf/numa_conf.h
src/conf/snapshot_conf.h
src/conf/storage_adapter_conf.h
src/conf/storage_conf.h
src/libxl/libxl_domain.h
src/locking/lock_daemon.c
src/logging/log_daemon.c
src/lxc/lxc_domain.h
src/qemu/qemu_command.c
src/qemu/qemu_command.h
src/qemu/qemu_domain.h
src/qemu/qemu_driver.c
src/qemu/qemu_migration.h
src/qemu/qemu_migration_params.c
src/qemu/qemu_migration_params.h
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
src/remote/remote_daemon.c
src/util/virconf.h
src/util/virerror.c
src/util/virfirewall.c
src/util/virhook.c
src/util/virmdev.h
src/util/virnetdev.h
src/util/virnetdevmacvlan.h
src/util/virnetdevvlan.h
src/util/virnetdevvportprofile.h
src/util/virpci.h
src/util/virresctrl.c
src/util/virsecret.h
src/util/virstorageencryption.h
src/util/virstoragefile.h
src/util/virsysinfo.h
src/util/virtypedparam.h
src/util/virutil.h
src/vmware/vmware_conf.h
src/vmx/vmx.c
tools/virsh-domain-monitor.c
tools/virsh-domain.c
tools/virsh-network.c
tools/virsh-nodedev.c
tools/virsh-pool.c
tools/virsh-secret.c
tools/virsh-volume.c
tools/virt-admin.c