diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-12-22 14:03:21 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-12-22 14:03:21 -0800 |
commit | 89972f57fc1d98a2990a635878df39867d1f98f9 (patch) | |
tree | acc8af2fa4cc19441c5d5459661d6040074a1e6c /src/wasm.h | |
parent | 58cb71723a5243f8a347e51e9ceb20b664719585 (diff) | |
parent | 397ddb4bbced30b96d6f05dddaea6a395269cf34 (diff) | |
download | binaryen-89972f57fc1d98a2990a635878df39867d1f98f9.tar.gz binaryen-89972f57fc1d98a2990a635878df39867d1f98f9.tar.bz2 binaryen-89972f57fc1d98a2990a635878df39867d1f98f9.zip |
Merge pull request #28 from WebAssembly/wall
Fix warnings found by GCC
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm.h b/src/wasm.h index 9571c0e7e..7baec88aa 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -52,6 +52,7 @@ #include <map> #include <vector> +#include "compiler-support.h" #include "emscripten-optimizer/simple_ast.h" #include "pretty_printing.h" @@ -95,6 +96,7 @@ inline const char* printWasmType(WasmType type) { case WasmType::i64: return "i64"; case WasmType::f32: return "f32"; case WasmType::f64: return "f64"; + default: WASM_UNREACHABLE(); } } @@ -105,6 +107,7 @@ inline unsigned getWasmTypeSize(WasmType type) { case WasmType::i64: return 8; case WasmType::f32: return 4; case WasmType::f64: return 8; + default: WASM_UNREACHABLE(); } } |