From 5f579c0cdad4208ecfd9ed6fccc9eb724d0ec34b Mon Sep 17 00:00:00 2001 From: John Ferlan Date: Tue, 22 Jan 2013 09:41:04 -0500 Subject: [PATCH] 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. --- src/storage/parthelper.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5