mirror of
git://sourceware.org/git/lvm2.git
synced 2025-04-01 18:50:41 +03:00
coverity: mark new switch cases with 'fall through' comment for coverity to stop complaining
This commit is contained in:
parent
3208396ce5
commit
e329c3146d
@ -1354,6 +1354,7 @@ static int _compare_selection_field(struct dm_report *rh,
|
||||
*/
|
||||
if (*(const uint64_t *) f->sort_value > DM_PERCENT_100)
|
||||
return 0;
|
||||
/* fall through */
|
||||
case DM_REPORT_FIELD_TYPE_NUMBER:
|
||||
r = _cmp_field_int(field_id, *(const uint64_t *) f->sort_value, fs->v.i, fs->flags);
|
||||
break;
|
||||
@ -1839,7 +1840,7 @@ static const char *_tok_value_regex(struct dm_report *rh,
|
||||
case '(': c = ')'; break;
|
||||
case '{': c = '}'; break;
|
||||
case '[': c = ']'; break;
|
||||
case '"':
|
||||
case '"': /* fall through */
|
||||
case '\'': c = *s; break;
|
||||
default: c = 0;
|
||||
}
|
||||
@ -2075,7 +2076,9 @@ static const char *_tok_value(struct dm_report *rh,
|
||||
break;
|
||||
|
||||
case DM_REPORT_FIELD_TYPE_NUMBER:
|
||||
/* fall through */
|
||||
case DM_REPORT_FIELD_TYPE_SIZE:
|
||||
/* fall through */
|
||||
case DM_REPORT_FIELD_TYPE_PERCENT:
|
||||
if (!(s = _tok_value_number(s, begin, end))) {
|
||||
log_error("Failed to parse numeric value "
|
||||
|
Loading…
x
Reference in New Issue
Block a user