1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* eval.c (specific_eval): suppress warning.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2007-02-07 14:25:47 +00:00
parent ac6ed201bf
commit 522f948a0c
2 changed files with 4 additions and 2 deletions

View file

@ -1,4 +1,6 @@
Wed Feb 7 23:24:44 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
Wed Feb 7 23:25:31 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (specific_eval): suppress warning.
* thread_win32.h: undefine _WIN32 on cygwin. [ruby-dev:30303]

2
eval.c
View file

@ -2165,7 +2165,7 @@ specific_eval(int argc, VALUE *argv, VALUE klass, VALUE self)
SafeStringValue(argv[0]);
}
if (argc > 3) {
char *name = rb_id2name(rb_frame_callee());
const char *name = rb_id2name(rb_frame_callee());
rb_raise(rb_eArgError,
"wrong number of arguments: %s(src) or %s{..}",
name, name);