mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
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.
This commit is contained in:
1 parent
011d40059d
commit
5f579c0cda
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user