]> xenbits.xensource.com Git - libvirt.git/commit
Require a semicolon for VIR_LOG_INIT calls
authorCole Robinson <crobinso@redhat.com>
Sun, 20 Jan 2019 16:32:42 +0000 (11:32 -0500)
committerCole Robinson <crobinso@redhat.com>
Sun, 3 Feb 2019 22:46:29 +0000 (17:46 -0500)
commit8bec5488a60ece485309dc2955227b61bf1a2f27
tree993a362cac3b000e0eb4c8462f4c4b595870c701
parent6a4d938dd33b8a73409a36ee1bd766ee57c74a27
Require a semicolon for VIR_LOG_INIT 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_LOG_INIT 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>
src/conf/capabilities.c
src/qemu/qemu_extdevice.c
src/qemu/qemu_tpm.c
src/util/virfilecache.c
src/util/virlog.h
src/util/virresctrl.c