1
0
Fork 0
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:
kosaki 2012-06-19 21:49:27 +00:00
parent 7339e678f4
commit 9021777282
2 changed files with 6 additions and 1 deletions

View file

@ -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
View file

@ -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);