aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--string.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 84decffa29..bb52861b92 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Apr 25 01:03:03 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
+
+ * string.c (rb_to_id): remove unused variable.
+
Sun Apr 24 22:19:05 2011 Tadayoshi Funaba <tadf@dotrb.org>
* complex.c, rational.c: omitted some method calls.
diff --git a/string.c b/string.c
index 1f02ebff49..47429acefc 100644
--- a/string.c
+++ b/string.c
@@ -7678,7 +7678,6 @@ ID
rb_to_id(VALUE name)
{
VALUE tmp;
- ID id;
switch (TYPE(name)) {
default:
@@ -7696,7 +7695,7 @@ rb_to_id(VALUE name)
case T_SYMBOL:
return SYM2ID(name);
}
- return id;
+ return Qnil; /* not reached */
}
/*