mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-22 23:12:24 +00:00
util/string.h: suppress case fallthrough warnings
This commit is contained in:
parent
35b1440c97
commit
bd045c65a2
@ -443,8 +443,11 @@ namespace Genode {
|
|||||||
if (i > 0)
|
if (i > 0)
|
||||||
switch (s[i]) {
|
switch (s[i]) {
|
||||||
case 'G': res *= 1024;
|
case 'G': res *= 1024;
|
||||||
|
[[fallthrough]];
|
||||||
case 'M': res *= 1024;
|
case 'M': res *= 1024;
|
||||||
|
[[fallthrough]];
|
||||||
case 'K': res *= 1024; i++;
|
case 'K': res *= 1024; i++;
|
||||||
|
[[fallthrough]];
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user