From e329c3146d91aba94f77a6d5da149e31b20ce60b Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Wed, 25 Jun 2014 08:51:37 +0200 Subject: [PATCH] coverity: mark new switch cases with 'fall through' comment for coverity to stop complaining --- libdm/libdm-report.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libdm/libdm-report.c b/libdm/libdm-report.c index 180bb9b8f..00c3d3fd3 100644 --- a/libdm/libdm-report.c +++ b/libdm/libdm-report.c @@ -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 " -- 2.43.5