Gitweb:
http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=e329c3146d91ab...
Commit: e329c3146d91aba94f77a6d5da149e31b20ce60b
Parent: 3208396ce5ef1c754e8e164f84dbc97727ddb5a4
Author: Peter Rajnoha <prajnoha(a)redhat.com>
AuthorDate: Wed Jun 25 08:51:37 2014 +0200
Committer: Peter Rajnoha <prajnoha(a)redhat.com>
CommitterDate: Wed Jun 25 08:51:37 2014 +0200
coverity: mark new switch cases with 'fall through' comment for coverity to stop
complaining
---
libdm/libdm-report.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/libdm/libdm-report.c b/libdm/libdm-report.c
index 180bb9b..00c3d3f 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 "