summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/wasm-reduce.cpp1
-rw-r--r--src/tools/wasm-shell.cpp3
2 files changed, 3 insertions, 1 deletions
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) {