Merge pull request #418 from orestisfl/warnings

Fix fall-through warnings
This commit is contained in:
Ingo Bürk 2020-05-01 22:41:53 +02:00 committed by GitHub
commit ae49ec4bcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -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;