Skip to content

Commit 0adcfd6

Browse files
authored
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 #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 commit 0adcfd6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stage1/wasm.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ static const char *WasmMut_toC(enum WasmMut val_type) {
5252
case WasmMut_var: return "";
5353
default: panic("unsupported mut");
5454
}
55+
return NULL;
5556
}
5657

5758
enum WasmOpcode {

0 commit comments

Comments
 (0)