gpt_write: fix false-positive fallthrough warning

This commit is contained in:
Norman Feske 2019-06-24 11:20:42 +02:00 committed by Christian Helmuth
parent 716453aaa1
commit 48a361107f
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}