summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-09-05 16:06:38 -0700
committerJeremy Evans <code@jeremyevans.net>2019-09-05 17:47:12 -0700
commitd3cf0eb2142902245b7d45b557f73bbb1f02ba5a (patch)
treef25afc6fbecb37ac38d55a3b43573a56877f396d
parent5045fe6017996a9ce2562667284b392e01b5759e (diff)
downloadruby-d3cf0eb2142902245b7d45b557f73bbb1f02ba5a.tar.gz
Mark rb_warn_keyword_to_last_hash as static inline
mame pointed out that vm_args.c is included in vm_insnhelper.c.
-rw-r--r--vm_args.c2
-rw-r--r--vm_insnhelper.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/vm_args.c b/vm_args.c
index 69ed9e5399..1542607323 100644
--- a/vm_args.c
+++ b/vm_args.c
@@ -581,7 +581,7 @@ ignore_keyword_hash_p(VALUE keyword_hash, const rb_iseq_t * const iseq) {
VALUE rb_iseq_location(const rb_iseq_t *iseq);
-MJIT_FUNC_EXPORTED void
+static inline void
rb_warn_keyword_to_last_hash(struct rb_calling_info *calling, const struct rb_call_info *ci, const rb_iseq_t * const iseq)
{
VALUE name, loc;
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 3c85d2f3fb..bc44ff37bd 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -24,7 +24,6 @@ extern void rb_method_definition_set(const rb_method_entry_t *me, rb_method_defi
extern int rb_method_definition_eq(const rb_method_definition_t *d1, const rb_method_definition_t *d2);
extern VALUE rb_make_no_method_exception(VALUE exc, VALUE format, VALUE obj,
int argc, const VALUE *argv, int priv);
-extern void rb_warn_keyword_to_last_hash(struct rb_calling_info *calling, const struct rb_call_info *ci, const rb_iseq_t * const iseq);
/* control stack frame */