aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authorHASUMI Hitoshi <hasumikin@gmail.com>2024-04-04 11:06:15 +0900
committerYusuke Endoh <mame@ruby-lang.org>2024-04-04 13:38:26 +0900
commit8aa8fce32021263c947a7a10daa24f07ede3e4a3 (patch)
treeef4da88249ead84695037b10674ac9fbd71cfba7 /compile.c
parent295f2a3305b4af3fd07f5dd0ee8cf6d9b2ce2ffc (diff)
downloadruby-8aa8fce32021263c947a7a10daa24f07ede3e4a3.tar.gz
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.c2
1 files changed, 2 insertions, 0 deletions
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);
}
}