summaryrefslogtreecommitdiff
path: root/src/tools/binaryen-shell.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-06-08 21:31:37 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-06-08 21:31:37 -0700
commit59542c98459771905ef25c5fe48079f3353d6869 (patch)
tree9653fea9a6b2ea305f59a1f848f156c3c15fe0e9 /src/tools/binaryen-shell.cpp
parent71f276cecc03a1af68a9bc349df9ba2d23c85ea3 (diff)
downloadbinaryen-59542c98459771905ef25c5fe48079f3353d6869.tar.gz
binaryen-59542c98459771905ef25c5fe48079f3353d6869.tar.bz2
binaryen-59542c98459771905ef25c5fe48079f3353d6869.zip
use WASM_UNUSED in some places to fix compiler warning/error on unused variables we only use in asserts (#579)
Diffstat (limited to 'src/tools/binaryen-shell.cpp')
-rw-r--r--src/tools/binaryen-shell.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/binaryen-shell.cpp b/src/tools/binaryen-shell.cpp
index 96f506934..ebc0138ee 100644
--- a/src/tools/binaryen-shell.cpp
+++ b/src/tools/binaryen-shell.cpp
@@ -131,6 +131,7 @@ static void run_asserts(size_t* i, bool* checked, Module* wasm,
// an invoke test
assert(wasm);
bool trapped = false;
+ WASM_UNUSED(trapped);
Literal result;
try {
Invocation invocation(*curr[1], instance.get(), *builder->get());