mirror of
https://github.com/genodelabs/genode.git
synced 2025-03-22 12:06:00 +00:00
base/string.h: avoid fallthrough cases
This commit is contained in:
parent
4188427596
commit
a0a1f6455a
@ -439,12 +439,9 @@ namespace Genode {
|
||||
/* handle suffixes */
|
||||
if (i > 0)
|
||||
switch (s[i]) {
|
||||
case 'G': res *= 1024;
|
||||
[[fallthrough]];
|
||||
case 'M': res *= 1024;
|
||||
[[fallthrough]];
|
||||
case 'K': res *= 1024; i++;
|
||||
[[fallthrough]];
|
||||
case 'G': res *= 1024*1024*1024; i++; break;
|
||||
case 'M': res *= 1024*1024; i++; break;
|
||||
case 'K': res *= 1024; i++; break;
|
||||
default: break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user