aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-26 01:34:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-26 01:34:35 +0000
commit3f519a7bfa8f1c806c5791efaa80d76817f7d61d (patch)
treed5124955fe0e69cecd9d74de8e8bd889bafbb663 /compile.c
parent08b08c1f27387f209cb215b518ceb802786ee42d (diff)
downloadruby-3f519a7bfa8f1c806c5791efaa80d76817f7d61d.tar.gz
compile.c: explicit address
* compile.c (prepare_compile_error): add & to explicit address of functions to suppress warnings by old VC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compile.c b/compile.c
index be2ab45eb4..efa35ba833 100644
--- a/compile.c
+++ b/compile.c
@@ -330,13 +330,13 @@ static compile_error_func
prepare_compile_error(rb_iseq_t *iseq)
{
VALUE err_info = ISEQ_COMPILE_DATA(iseq)->err_info;
- if (compile_debug) return rb_compile_bug_str;
+ if (compile_debug) return &rb_compile_bug_str;
if (NIL_P(err_info)) {
err_info = rb_exc_new_cstr(rb_eSyntaxError, "");
RB_OBJ_WRITE(iseq, &ISEQ_COMPILE_DATA(iseq)->err_info, err_info);
}
rb_set_errinfo(err_info);
- return append_compile_error;
+ return &append_compile_error;
}
#define COMPILE_ERROR prepare_compile_error(iseq)