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…
Reference in New Issue
Block a user