mirror of https://gitee.com/openkylin/libvirt.git
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;
|
||||
break;
|
||||
|
||||
/* coverity[dead_error_begin] */
|
||||
default:
|
||||
break;
|
||||
/* should not hit here */
|
||||
|
@ -2175,6 +2176,7 @@ lxcDomainGetBlkioParameters(virDomainPtr dom,
|
|||
goto cleanup;
|
||||
break;
|
||||
|
||||
/* coverity[dead_error_begin] */
|
||||
default:
|
||||
break;
|
||||
/* should not hit here */
|
||||
|
@ -2192,6 +2194,7 @@ lxcDomainGetBlkioParameters(virDomainPtr dom,
|
|||
goto cleanup;
|
||||
break;
|
||||
|
||||
/* coverity[dead_error_begin] */
|
||||
default:
|
||||
break;
|
||||
/* should not hit here */
|
||||
|
|
Loading…
Reference in New Issue