lxc: Add coverity[dead_error_begin] tag in switch stmts
The use of switch statements inside a bounded for loop resulted in some false positives regarding the "default:" label which cannot be reached since each of the other case statements use the possible for loop values.
This commit is contained in:
parent
751bb8ce99
commit
15666e026f
@ -920,6 +920,7 @@ lxcDomainGetMemoryParameters(virDomainPtr dom,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
/* coverity[dead_error_begin] */
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
/* should not hit here */
|
/* should not hit here */
|
||||||
@ -2175,6 +2176,7 @@ lxcDomainGetBlkioParameters(virDomainPtr dom,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
/* coverity[dead_error_begin] */
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
/* should not hit here */
|
/* should not hit here */
|
||||||
@ -2192,6 +2194,7 @@ lxcDomainGetBlkioParameters(virDomainPtr dom,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
/* coverity[dead_error_begin] */
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
/* should not hit here */
|
/* should not hit here */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user