diff options
author | Orestis Floros <orestisflo@gmail.com> | 2020-05-01 19:09:35 +0200 |
---|---|---|
committer | Orestis Floros <orestisflo@gmail.com> | 2020-05-01 19:09:35 +0200 |
commit | 24c417966e8a7b19ad1d4dbb1f5ad684b7e29da5 (patch) | |
tree | 35899e5e7d9c0c627232619f419ca1c684a6a242 | |
parent | a1ed46a18a621008e36a3e6b26670f33ab031e0b (diff) |
Fix fall-through warnings
-rw-r--r-- | src/print_disk_info.c | 3 | ||||
-rw-r--r-- | src/print_mem.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/print_disk_info.c b/src/print_disk_info.c index 4c23c7a..d8cce1c 100644 --- a/src/print_disk_info.c +++ b/src/print_disk_info.c @@ -84,12 +84,15 @@ static bool below_threshold(struct statvfs buf, const char *prefix_type, const c case 'T': case 't': factor *= base; + /* fall-through */ case 'G': case 'g': factor *= base; + /* fall-through */ case 'M': case 'm': factor *= base; + /* fall-through */ case 'K': case 'k': factor *= base; diff --git a/src/print_mem.c b/src/print_mem.c index 941c9d9..4a521d7 100644 --- a/src/print_mem.c +++ b/src/print_mem.c @@ -62,12 +62,15 @@ static unsigned long memory_absolute(const char *mem_amount, const unsigned long case 'T': case 't': amount *= BINARY_BASE; + /* fall-through */ case 'G': case 'g': amount *= BINARY_BASE; + /* fall-through */ case 'M': case 'm': amount *= BINARY_BASE; + /* fall-through */ case 'K': case 'k': amount *= BINARY_BASE; |