diff options
author | JF Bastien <jfb@chromium.org> | 2015-12-22 13:51:20 -0800 |
---|---|---|
committer | JF Bastien <jfb@chromium.org> | 2015-12-22 13:51:20 -0800 |
commit | e3c5ca02fde4282a3797be6ecea5a473ac8c3a1d (patch) | |
tree | 430845f9b7a4121f876ea5c6e0980a760a597c03 /src/wasm.h | |
parent | 4726dcfd02ca4bea786fe4b6ef4629e3e2a1561d (diff) | |
download | binaryen-e3c5ca02fde4282a3797be6ecea5a473ac8c3a1d.tar.gz binaryen-e3c5ca02fde4282a3797be6ecea5a473ac8c3a1d.tar.bz2 binaryen-e3c5ca02fde4282a3797be6ecea5a473ac8c3a1d.zip |
Fix warnings found by GCC
My previous patch addressed all LLVM warnings, this one addresses all the GCC ones as well (mostly signed / unsigned mix).
The patch also turns on -Wall -Werror.
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(); } } |