summaryrefslogtreecommitdiff
path: root/libdm/libdm-report.c
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2017-02-12 18:17:07 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2017-02-13 10:06:18 +0100
commitb6301aa977df675918f25f6ace11628fa846392c (patch)
tree824ef27592b5b3ab9280468edea6d444ab5ffced /libdm/libdm-report.c
parenta39c828c01f747696a6e042df48da62ec0e1ba75 (diff)
downloadlvm2-b6301aa977df675918f25f6ace11628fa846392c.tar.gz
cleanup: use fall through
gcc gets 'selective' on having commented fall through case.
Diffstat (limited to 'libdm/libdm-report.c')
-rw-r--r--libdm/libdm-report.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libdm/libdm-report.c b/libdm/libdm-report.c
index 93b877450..f9e261dd3 100644
--- a/libdm/libdm-report.c
+++ b/libdm/libdm-report.c
@@ -3062,26 +3062,31 @@ static void _get_final_time(time_range_t range, struct tm *tm,
tm_up.tm_sec += 1;
break;
}
+ /* fall through */
case RANGE_MINUTE:
if (tm_up.tm_min < 59) {
tm_up.tm_min += 1;
break;
}
+ /* fall through */
case RANGE_HOUR:
if (tm_up.tm_hour < 23) {
tm_up.tm_hour += 1;
break;
}
+ /* fall through */
case RANGE_DAY:
if (tm_up.tm_mday < _get_days_in_month(tm_up.tm_mon, tm_up.tm_year)) {
tm_up.tm_mday += 1;
break;
}
+ /* fall through */
case RANGE_MONTH:
if (tm_up.tm_mon < 11) {
tm_up.tm_mon += 1;
break;
}
+ /* fall through */
case RANGE_YEAR:
tm_up.tm_year += 1;
break;