util/string.h: suppress case fallthrough warnings

This commit is contained in:
Pirmin Duss 2019-05-22 15:34:22 +02:00 committed by Christian Helmuth
parent 35b1440c97
commit bd045c65a2

View File

@ -443,8 +443,11 @@ namespace Genode {
if (i > 0)
switch (s[i]) {
case 'G': res *= 1024;
[[fallthrough]];
case 'M': res *= 1024;
[[fallthrough]];
case 'K': res *= 1024; i++;
[[fallthrough]];
default: break;
}