From 824ebd80f9883890f8c183a708327edd097f4439 Mon Sep 17 00:00:00 2001 From: Rangi Date: Wed, 8 Jul 2026 16:30:49 -0400 Subject: [PATCH] Use `[[fallthrough]];` attribute instead of `// fallthrough` comment --- src/asm/actions.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/asm/actions.cpp b/src/asm/actions.cpp index 75440926..9fc2d68a 100644 --- a/src/asm/actions.cpp +++ b/src/asm/actions.cpp @@ -290,7 +290,7 @@ size_t act_StringLen(std::string const &str, bool printErrors) { errorInvalidUTF8Byte(byte, "STRLEN"); } decoder.state = UTF8_ACCEPT; - // fallthrough + [[fallthrough]]; case UTF8_ACCEPT: ++len; break; @@ -325,7 +325,7 @@ std::string case UTF8_REJECT: errorInvalidUTF8Byte(str[index], "STRSLICE"); decoder.state = UTF8_ACCEPT; - // fallthrough + [[fallthrough]]; case UTF8_ACCEPT: ++curIdx; break; @@ -351,7 +351,7 @@ std::string case UTF8_REJECT: errorInvalidUTF8Byte(str[index], "STRSLICE"); decoder.state = UTF8_ACCEPT; - // fallthrough + [[fallthrough]]; case UTF8_ACCEPT: ++curIdx; break; @@ -394,7 +394,7 @@ std::string act_StringSub(std::string const &str, int32_t negPos, std::optional< case UTF8_REJECT: errorInvalidUTF8Byte(str[index], "STRSUB"); decoder.state = UTF8_ACCEPT; - // fallthrough + [[fallthrough]]; case UTF8_ACCEPT: ++curPos; break; @@ -419,7 +419,7 @@ std::string act_StringSub(std::string const &str, int32_t negPos, std::optional< case UTF8_REJECT: errorInvalidUTF8Byte(str[index], "STRSUB"); decoder.state = UTF8_ACCEPT; - // fallthrough + [[fallthrough]]; case UTF8_ACCEPT: ++curLen; break;