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