Fix warning WasmMut_toC not all control paths return a value (#24267)
* Fix warning WasmMut_toC not all control paths return a value
This is a follow up to https://github.com/ziglang/zig/pull/24206 where
I had previously submitted different mechanisms to fix this warning.
This PR is a suggestion by Alex to return NULL instead and Andrew
confirmed this is his preference.
1 files changed, 1 insertions(+), 0 deletions(-)
stage1
stage1/wasm.h+1
| ... | ... | @@ -52,6 +52,7 @@ static const char *WasmMut_toC(enum WasmMut val_type) { |
| 52 | 52 | case WasmMut_var: return ""; |
| 53 | 53 | default: panic("unsupported mut"); |
| 54 | 54 | } |
| 55 | return NULL; |
| 55 | 56 | } |
| 56 | 57 | |
| 57 | 58 | enum WasmOpcode { |