diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c index 1289fec24..0731108bd 100644 --- a/lib/metadata/metadata.c +++ b/lib/metadata/metadata.c @@ -1256,7 +1256,7 @@ uint32_t extents_from_percent_size(struct volume_group *vg, const struct dm_list } break; } - /* Fall back to use all PVs in VG like %FREE */ + /* fall through to use all PVs in VG like %FREE */ case PERCENT_FREE: if (!(extents = vg->free_count)) { log_error("No free extents in Volume group %s.", vg->name); 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;