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 | }
      | ^
```
This commit is contained in:
HASUMI Hitoshi 2024-04-04 11:06:15 +09:00 committed by Yusuke Endoh
parent 295f2a3305
commit 8aa8fce320

View File

@ -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);
}
}