summaryrefslogtreecommitdiff
path: root/src/error-formatter.cc
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2023-02-26 17:39:17 -0800
committerGitHub <noreply@github.com>2023-02-27 01:39:17 +0000
commit546d42a6ce52e67270ed7957b249bc59b4b57a1b (patch)
treeb327c19a95710df8be60716220d6630bf01b7b47 /src/error-formatter.cc
parent3d9ec159cb362d71cf76938d583841975b3e730a (diff)
downloadwabt-546d42a6ce52e67270ed7957b249bc59b4b57a1b.tar.gz
wabt-546d42a6ce52e67270ed7957b249bc59b4b57a1b.tar.bz2
wabt-546d42a6ce52e67270ed7957b249bc59b4b57a1b.zip
Use C++17's [[fallthrough]]. NFC (#2091)
Diffstat (limited to 'src/error-formatter.cc')
-rw-r--r--src/error-formatter.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/error-formatter.cc b/src/error-formatter.cc
index 5b0d4952..9a14cfac 100644
--- a/src/error-formatter.cc
+++ b/src/error-formatter.cc
@@ -94,7 +94,7 @@ std::string FormatErrorsToString(const Errors& errors,
break;
case PrintHeader::Once:
print_header = PrintHeader::Never;
- // Fallthrough.
+ [[fallthrough]];
case PrintHeader::Always:
result += header;
result += ":\n";