mirror of
https://github.com/genodelabs/genode.git
synced 2025-03-11 06:54:18 +00:00
gpt_write: fix false-positive fallthrough warning
This commit is contained in:
parent
716453aaa1
commit
48a361107f
@ -92,8 +92,8 @@ namespace Util {
|
||||
/* handle suffixes */
|
||||
if (i > 0)
|
||||
switch (s[i]) {
|
||||
case 'G': res *= 1024;
|
||||
case 'M': res *= 1024;
|
||||
case 'G': res *= 1024; [[fallthrough]];
|
||||
case 'M': res *= 1024; [[fallthrough]];
|
||||
case 'K': res *= 1024; i++;
|
||||
default: break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user