mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
7339e678f4
commit
9021777282
2 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue