зеркало из https://github.com/github/ruby.git
* dir.c (dir_initialize): get rid of "unused return: argc = rb_scan_args()"
warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
7339e678f4
Коммит
9021777282
|
@ -1,3 +1,8 @@
|
|||
Mon Jun 18 20:07:23 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* dir.c (dir_initialize): get rid of "unused return: argc = rb_scan_args()"
|
||||
warning.
|
||||
|
||||
Mon Jun 18 19:31:20 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* include/ruby/missing.h: include math.h before checking INFINITY
|
||||
|
|
2
dir.c
2
dir.c
|
@ -396,7 +396,7 @@ dir_initialize(int argc, VALUE *argv, VALUE dir)
|
|||
}
|
||||
fsenc = rb_filesystem_encoding();
|
||||
|
||||
argc = rb_scan_args(argc, argv, "1:", &dirname, &opt);
|
||||
rb_scan_args(argc, argv, "1:", &dirname, &opt);
|
||||
|
||||
if (!NIL_P(opt)) {
|
||||
VALUE enc = rb_hash_aref(opt, sym_enc);
|
||||
|
|
Загрузка…
Ссылка в новой задаче