From 8aa8fce32021263c947a7a10daa24f07ede3e4a3 Mon Sep 17 00:00:00 2001 From: HASUMI Hitoshi Date: Thu, 4 Apr 2024 11:06:15 +0900 Subject: [PATCH] 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 | } | ^ ``` --- compile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compile.c b/compile.c index 8816703e59..0ca7b94844 100644 --- a/compile.c +++ b/compile.c @@ -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); } }