mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue