mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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>
This commit is contained in:
@@ -54,7 +54,7 @@ static char *progname;
|
||||
static const vshCmdGrp cmdGroups[];
|
||||
static const vshClientHooks hooks;
|
||||
|
||||
VIR_ENUM_DECL(virClientTransport)
|
||||
VIR_ENUM_DECL(virClientTransport);
|
||||
VIR_ENUM_IMPL(virClientTransport,
|
||||
VIR_CLIENT_TRANS_LAST,
|
||||
N_("unix"),
|
||||
|
||||
Reference in New Issue
Block a user