Merge pull request #418 from orestisfl/warnings
Fix fall-through warnings
This commit is contained in:
commit
ae49ec4bcb
@ -84,12 +84,15 @@ static bool below_threshold(struct statvfs buf, const char *prefix_type, const c
|
|||||||
case 'T':
|
case 'T':
|
||||||
case 't':
|
case 't':
|
||||||
factor *= base;
|
factor *= base;
|
||||||
|
/* fall-through */
|
||||||
case 'G':
|
case 'G':
|
||||||
case 'g':
|
case 'g':
|
||||||
factor *= base;
|
factor *= base;
|
||||||
|
/* fall-through */
|
||||||
case 'M':
|
case 'M':
|
||||||
case 'm':
|
case 'm':
|
||||||
factor *= base;
|
factor *= base;
|
||||||
|
/* fall-through */
|
||||||
case 'K':
|
case 'K':
|
||||||
case 'k':
|
case 'k':
|
||||||
factor *= base;
|
factor *= base;
|
||||||
|
@ -62,12 +62,15 @@ static unsigned long memory_absolute(const char *mem_amount, const unsigned long
|
|||||||
case 'T':
|
case 'T':
|
||||||
case 't':
|
case 't':
|
||||||
amount *= BINARY_BASE;
|
amount *= BINARY_BASE;
|
||||||
|
/* fall-through */
|
||||||
case 'G':
|
case 'G':
|
||||||
case 'g':
|
case 'g':
|
||||||
amount *= BINARY_BASE;
|
amount *= BINARY_BASE;
|
||||||
|
/* fall-through */
|
||||||
case 'M':
|
case 'M':
|
||||||
case 'm':
|
case 'm':
|
||||||
amount *= BINARY_BASE;
|
amount *= BINARY_BASE;
|
||||||
|
/* fall-through */
|
||||||
case 'K':
|
case 'K':
|
||||||
case 'k':
|
case 'k':
|
||||||
amount *= BINARY_BASE;
|
amount *= BINARY_BASE;
|
||||||
|
Loading…
Reference in New Issue
Block a user