summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-stack.cpp
diff options
context:
space:
mode:
authorwalkingeyerobot <mitch@thefoley.net>2021-02-16 13:37:16 -0500
committerGitHub <noreply@github.com>2021-02-16 10:37:16 -0800
commita74bc72dbe6fa5f3edacfba160dc4e5d630b99b6 (patch)
tree87ef32b833cb2cae2b2a755eafb4dea407fa8337 /src/wasm/wasm-stack.cpp
parent3a368f480bcdc36564650f3c0236818613e5d510 (diff)
downloadbinaryen-a74bc72dbe6fa5f3edacfba160dc4e5d630b99b6.tar.gz
binaryen-a74bc72dbe6fa5f3edacfba160dc4e5d630b99b6.tar.bz2
binaryen-a74bc72dbe6fa5f3edacfba160dc4e5d630b99b6.zip
cleanup to allow binaryen to be built in more strict environments (#3566)
Diffstat (limited to 'src/wasm/wasm-stack.cpp')
-rw-r--r--src/wasm/wasm-stack.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm/wasm-stack.cpp b/src/wasm/wasm-stack.cpp
index cb9d94093..d36c2386c 100644
--- a/src/wasm/wasm-stack.cpp
+++ b/src/wasm/wasm-stack.cpp
@@ -2302,7 +2302,7 @@ void StackIRToBinaryWriter::write() {
switch (inst->op) {
case StackInst::TryBegin:
catchIndexStack.push_back(0);
- // fallthrough
+ [[fallthrough]];
case StackInst::Basic:
case StackInst::BlockBegin:
case StackInst::IfBegin:
@@ -2312,7 +2312,7 @@ void StackIRToBinaryWriter::write() {
}
case StackInst::TryEnd:
catchIndexStack.pop_back();
- // fallthrough
+ [[fallthrough]];
case StackInst::BlockEnd:
case StackInst::IfEnd:
case StackInst::LoopEnd: {