Coverity complained about these intentional fallthrough cases, but
not about other cases that were explicitly marked with nice comments.
For some reason, Coverity doesn't seem smart enough to parse the
up-front English comment in virsh about intentional fallthrough :)
* tools/virsh.c (cmdVolSize): Mark fallthrough in a more typical
fashion.
* src/conf/nwfilter_conf.c (virNWFilterRuleDefDetailsFormat)
(virNWFilterRuleDetailsParse): Mark explicit fallthrough.
switch (datatype) {
case DATATYPE_UINT8_HEX:
base = 16;
+ /* fallthrough */
case DATATYPE_UINT8:
if (virStrToLong_ui(prop, NULL, base, &uint_val) >= 0) {
if (uint_val <= 0xff) {
case DATATYPE_UINT16_HEX:
base = 16;
+ /* fallthrough */
case DATATYPE_UINT16:
if (virStrToLong_ui(prop, NULL, base, &uint_val) >= 0) {
if (uint_val <= 0xffff) {
case DATATYPE_UINT8_HEX:
asHex = true;
+ /* fallthrough */
case DATATYPE_IPMASK:
case DATATYPE_IPV6MASK:
/* display all masks in CIDR format */
case DATATYPE_UINT16_HEX:
asHex = true;
+ /* fallthrough */
case DATATYPE_UINT16:
virBufferAsprintf(buf, asHex ? "0x%x" : "%d",
item->u.u16);
switch (*end) {
case 'T':
*val *= 1024;
+ /* fallthrough */
case 'G':
*val *= 1024;
+ /* fallthrough */
case 'M':
*val *= 1024;
+ /* fallthrough */
case 'k':
*val *= 1024;
break;