summaryrefslogtreecommitdiff
path: root/src/asm2wasm.h
diff options
context:
space:
mode:
authorJF Bastien <jfb@chromium.org>2015-12-22 12:57:27 -0800
committerJF Bastien <jfb@chromium.org>2015-12-22 12:57:27 -0800
commitdd1b898e98ae19012ef18a990a9283ab7d349652 (patch)
treeb96d24e7983e1fbdc48af3e74c660c263ceefdee /src/asm2wasm.h
parentafd2e66106d08792f54aea7ddfa408853ce229ed (diff)
downloadbinaryen-dd1b898e98ae19012ef18a990a9283ab7d349652.tar.gz
binaryen-dd1b898e98ae19012ef18a990a9283ab7d349652.tar.bz2
binaryen-dd1b898e98ae19012ef18a990a9283ab7d349652.zip
Fix unused variable / function warnings.
Diffstat (limited to 'src/asm2wasm.h')
-rw-r--r--src/asm2wasm.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/asm2wasm.h b/src/asm2wasm.h
index 8bed531de..2d92efbfd 100644
--- a/src/asm2wasm.h
+++ b/src/asm2wasm.h
@@ -33,14 +33,6 @@ extern int debug; // wasm::debug is set in main(), typically from an env var
// Utilities
-static void abort_on(std::string why) {
- std::cerr << why << '\n';
- abort();
-}
-static void abort_on(std::string why, int x) {
- std::cerr << why << ' ' << x << '\n';
- abort();
-}
static void abort_on(std::string why, Ref element) {
std::cerr << why << ' ';
element->stringify(std::cerr);
@@ -665,7 +657,7 @@ void Asm2WasmBuilder::processAsm(Ref ast) {
} else if (curr[0] == RETURN) {
// exports
Ref object = curr[1];
- Ref contents = curr[1][1];
+ Ref contents = object[1];
for (unsigned k = 0; k < contents->size(); k++) {
Ref pair = contents[k];
IString key = pair[0]->getIString();