mirror of
https://github.com/genodelabs/genode.git
synced 2025-03-12 07:24:07 +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 */
|
/* handle suffixes */
|
||||||
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++;
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user