summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-06 12:39:59 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-06 12:39:59 +0000
commit6a7666e56290bd3647b4996c265b6794c3c9d0a4 (patch)
treebec24ca7d81292f8f7277caeb762908df94e12bf /io.c
parent6051f542608d2fa86c84f45aeae847022550dfcc (diff)
* io.c (io_encoding_set): suppress warnings. [ruby-dev:45627]
this tmp1 is not required after r35538. * addr2line.c: suppress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/io.c b/io.c
index cacbe10247..c4b7f128e0 100644
--- a/io.c
+++ b/io.c
@@ -8786,7 +8786,6 @@ io_encoding_set(rb_io_t *fptr, VALUE v1, VALUE v2, VALUE opt)
enc = find_encoding(v2);
if (enc == enc2) {
/* Special case - "-" => no transcoding */
- VALUE tmp1 = rb_check_string_type(v1);
enc2 = NULL;
}
}
@@ -8794,7 +8793,6 @@ io_encoding_set(rb_io_t *fptr, VALUE v1, VALUE v2, VALUE opt)
enc = find_encoding(v2);
if (enc == enc2) {
/* Special case - "-" => no transcoding */
- VALUE tmp1 = rb_check_string_type(v1);
enc2 = NULL;
}
}