ruby-changes:2645
From: ko1@a...
Date: 8 Dec 2007 17:53:31 +0900
Subject: [ruby-changes:2645] akr - Ruby:r14136 (trunk): * enum.c (enum_count): suppress warning.
akr 2007-12-08 17:53:20 +0900 (Sat, 08 Dec 2007)
New Revision: 14136
Modified files:
trunk/enum.c
Log:
* enum.c (enum_count): suppress warning.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/enum.c?r1=14136&r2=14135
Index: enum.c
===================================================================
--- enum.c (revision 14135)
+++ enum.c (revision 14136)
@@ -123,7 +123,9 @@
return INT2NUM(n);
}
else {
- rb_scan_args(argc, argv, "1", &argv[0]);
+ VALUE v;
+ rb_scan_args(argc, argv, "1", &v);
+ return Qnil; /* not reached */
}
}
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml