Commit 0adcfd60f4

Jonathan Marler <johnnymarler@gmail.com>
2025-06-26 07:39:08
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 parent 8eca338
Changed files (1)
stage1
stage1/wasm.h
@@ -52,6 +52,7 @@ static const char *WasmMut_toC(enum WasmMut val_type) {
         case WasmMut_var: return "";
         default: panic("unsupported mut");
     }
+    return NULL;
 }
 
 enum WasmOpcode {