From bd045c65a278afc2139339210146bd8f8955eb5e Mon Sep 17 00:00:00 2001 From: Pirmin Duss Date: Wed, 22 May 2019 15:34:22 +0200 Subject: [PATCH] util/string.h: suppress case fallthrough warnings --- repos/base/include/util/string.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/repos/base/include/util/string.h b/repos/base/include/util/string.h index 32ed190d5..aa4197697 100644 --- a/repos/base/include/util/string.h +++ b/repos/base/include/util/string.h @@ -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; }