diff options
author | HASUMI Hitoshi <[email protected]> | 2024-04-04 11:06:15 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2024-04-04 13:38:26 +0900 |
commit | 8aa8fce32021263c947a7a10daa24f07ede3e4a3 (patch) | |
tree | ef4da88249ead84695037b10674ac9fbd71cfba7 /compile.c | |
parent | 295f2a3305b4af3fd07f5dd0ee8cf6d9b2ce2ffc (diff) |
Fix return-type warning in compile.c
This patch surppresses the warning below:
```console
compile.c:10314:1: warning: control reaches end of non-void function [-Wreturn-type]
10314 | }
| ^
```
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -10262,6 +10262,8 @@ compile_shareable_constant_value(rb_iseq_t *iseq, LINK_ANCHOR *ret, enum rb_pars ADD_SEQ(ret, anchor); } return COMPILE_OK; + default: + rb_bug("unexpected rb_parser_shareability: %d", shareable); } } |