提交 15666e02 编写于 作者: J John Ferlan 提交者: Michal Privoznik

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.
上级 751bb8ce
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册