diff options
author | Alon Zakai <azakai@google.com> | 2022-06-30 14:24:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-30 14:24:56 -0700 |
commit | 53de5ed9ac251301c33125bb58137d0a992d984b (patch) | |
tree | 0d3655303fbd2659db7882131d06332da967c48c /src | |
parent | db6d7901fcc043d72c9957d4ebf101b6457b2623 (diff) | |
download | binaryen-53de5ed9ac251301c33125bb58137d0a992d984b.tar.gz binaryen-53de5ed9ac251301c33125bb58137d0a992d984b.tar.bz2 binaryen-53de5ed9ac251301c33125bb58137d0a992d984b.zip |
Fix more no-assertions warnings (#4765)
Diffstat (limited to 'src')
-rw-r--r-- | src/cfg/cfg-traversal.h | 1 | ||||
-rw-r--r-- | src/tools/wasm-reduce.cpp | 1 | ||||
-rw-r--r-- | src/tools/wasm-shell.cpp | 3 |
3 files changed, 4 insertions, 1 deletions
diff --git a/src/cfg/cfg-traversal.h b/src/cfg/cfg-traversal.h index 478b4780e..3a15143fe 100644 --- a/src/cfg/cfg-traversal.h +++ b/src/cfg/cfg-traversal.h @@ -277,6 +277,7 @@ struct CFGWalker : public ControlFlowWalker<SubType, VisitorType> { break; } } + WASM_UNUSED(found); assert(found); continue; } diff --git a/src/tools/wasm-reduce.cpp b/src/tools/wasm-reduce.cpp index 2276f66a4..a4d326426 100644 --- a/src/tools/wasm-reduce.cpp +++ b/src/tools/wasm-reduce.cpp @@ -941,6 +941,7 @@ struct Reducer // process things here, we may replace the module, so we should never again // refer to curr. assert(curr == module.get()); + WASM_UNUSED(curr); curr = nullptr; // Reduction of entire functions at a time is very effective, and we do it diff --git a/src/tools/wasm-shell.cpp b/src/tools/wasm-shell.cpp index 0de93c69e..617d56313 100644 --- a/src/tools/wasm-shell.cpp +++ b/src/tools/wasm-shell.cpp @@ -208,7 +208,7 @@ protected: std::cout << "[exception thrown: " << e << "]" << std::endl; trapped = true; } - + WASM_UNUSED(trapped); assert(trapped); } @@ -228,6 +228,7 @@ protected: std::cout << "[exception thrown: " << e << "]" << std::endl; trapped = true; } + WASM_UNUSED(trapped); assert(!trapped); std::cerr << "seen " << actual << ", expected " << expected << '\n'; if (expected != actual) { |