mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
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.
This commit is contained in:
parent
8eca338c27
commit
0adcfd60f4
@ -52,6 +52,7 @@ static const char *WasmMut_toC(enum WasmMut val_type) {
|
|||||||
case WasmMut_var: return "";
|
case WasmMut_var: return "";
|
||||||
default: panic("unsupported mut");
|
default: panic("unsupported mut");
|
||||||
}
|
}
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum WasmOpcode {
|
enum WasmOpcode {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user