From: John Ferlan Date: Tue, 22 Jan 2013 14:41:04 +0000 (-0500) Subject: storage: Add coverity[dead_error_condition] to avoid error X-Git-Tag: v1.0.2-rc1~50 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5f579c0cdad4208ecfd9ed6fccc9eb724d0ec34b;p=thirdparty%2Flibvirt.git storage: Add coverity[dead_error_condition] to avoid error The local redefinition of PED_PARTITION_PROTECTED results in the error but is not a problem especially if the built code doesn't have the latest definitions. --- diff --git a/src/storage/parthelper.c b/src/storage/parthelper.c index 83f8279856..c4af48fcb9 100644 --- a/src/storage/parthelper.c +++ b/src/storage/parthelper.c @@ -129,6 +129,7 @@ int main(int argc, char **argv) content = "free"; else if (part->type & PED_PARTITION_METADATA) content = "metadata"; + /* coverity[dead_error_condition] - not true if defined */ else if (part->type & PED_PARTITION_PROTECTED) content = "protected"; else @@ -142,6 +143,7 @@ int main(int argc, char **argv) content = "free"; else if (part->type & PED_PARTITION_METADATA) content = "metadata"; + /* coverity[dead_error_condition] - not true if defined */ else if (part->type & PED_PARTITION_PROTECTED) content = "protected"; else