master - cleanup: use fall through
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=b6301aa977df675918f25f6ace11628fa846392c Commit: b6301aa977df675918f25f6ace11628fa846392c Parent: a39c828c01f747696a6e042df48da62ec0e1ba75 Author: Zdenek Kabelac <[email protected]> AuthorDate: Sun Feb 12 18:17:07 2017 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Feb 13 10:06:18 2017 +0100
cleanup: use fall through
gcc gets 'selective' on having commented fall through case.
--- lib/metadata/metadata.c | 2 +- libdm/libdm-report.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletions(-)
lib/metadata/metadata.c +1 -1
@@ -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);
libdm/libdm-report.c +5 -0
@@ -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 ;