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:
@@ -935,7 +935,7 @@ static const vshCmdOptDef opts_vol_wipe[] = {
|
||||
{.name = NULL}
|
||||
};
|
||||
|
||||
VIR_ENUM_DECL(virStorageVolWipeAlgorithm)
|
||||
VIR_ENUM_DECL(virStorageVolWipeAlgorithm);
|
||||
VIR_ENUM_IMPL(virStorageVolWipeAlgorithm, VIR_STORAGE_VOL_WIPE_ALG_LAST,
|
||||
"zero", "nnsa", "dod", "bsi", "gutmann", "schneier",
|
||||
"pfitzner7", "pfitzner33", "random", "trim");
|
||||
@@ -981,7 +981,7 @@ cmdVolWipe(vshControl *ctl, const vshCmd *cmd)
|
||||
}
|
||||
|
||||
|
||||
VIR_ENUM_DECL(virshStorageVol)
|
||||
VIR_ENUM_DECL(virshStorageVol);
|
||||
VIR_ENUM_IMPL(virshStorageVol,
|
||||
VIR_STORAGE_VOL_LAST,
|
||||
N_("file"),
|
||||
|
||||
Reference in New Issue
Block a user