Commit 86b994df05ce792b792411b813f1c11f077ddb52

Authored by Danny Al-Gaaf
1 parent e958b043
Exists in master and in 3 other branches v2, v3, wip-18092

gf_w32.c: add missing breaks

Since there is no comment indicating fallthrough on purpose added a
break in switch value 3 and 5/before default.

Fix for coverity issue from Ceph project:

CID 1193080 (#1 of 1): Missing break in switch (MISSING_BREAK)
 unterminated_case: This case (value 3) is not terminated by a 'break'
 statement.

CID 1193081 (#1 of 1): Missing break in switch (MISSING_BREAK)
 unterminated_case: This case (value 5) is not terminated by a 'break'
 statement.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
src/gf_w32.c
... ... @@ -1096,6 +1096,7 @@ gf_w32_bytwo_b_nosse_multiply_region(gf_t *gf, void *src, void *dest, gf_val_32_
1096 1096 s64++;
1097 1097 }
1098 1098 }
  1099 + break;
1099 1100 case 4:
1100 1101 if (xor) {
1101 1102 while (d64 < (uint64_t *) rd.d_top) {
... ... @@ -1139,6 +1140,7 @@ gf_w32_bytwo_b_nosse_multiply_region(gf_t *gf, void *src, void *dest, gf_val_32_
1139 1140 s64++;
1140 1141 }
1141 1142 }
  1143 + break;
1142 1144 default:
1143 1145 if (xor) {
1144 1146 while (d64 < (uint64_t *) rd.d_top) {
... ...