mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 20:45:18 +00: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:
parent
011d40059d
commit
5f579c0cda
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user