[前][次][番号順一覧][スレッド一覧]

ruby-changes:24092

From: kosaki <ko1@a...>
Date: Wed, 20 Jun 2012 06:50:14 +0900 (JST)
Subject: [ruby-changes:24092] kosaki:r36143 (trunk): * dir.c (dir_initialize): get rid of "unused return: argc = rb_scan_args()"

kosaki	2012-06-20 06:49:27 +0900 (Wed, 20 Jun 2012)

  New Revision: 36143

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36143

  Log:
    * dir.c (dir_initialize): get rid of "unused return: argc = rb_scan_args()"
      warning.

  Modified files:
    trunk/ChangeLog
    trunk/dir.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 36142)
+++ ChangeLog	(revision 36143)
@@ -1,3 +1,8 @@
+Mon Jun 18 20:07:23 2012  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* 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@g...>
 
 	* include/ruby/missing.h: include math.h before checking INFINITY
Index: dir.c
===================================================================
--- dir.c	(revision 36142)
+++ dir.c	(revision 36143)
@@ -396,7 +396,7 @@
     }
     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);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]