diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-31 09:28:20 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-31 09:28:20 +0000 |
commit | 075530a6850ebf899e8874d7675fd900577c9554 (patch) | |
tree | 45dd63e7b9262c43ebd8ef19b0057a150d1e3eb5 /io.c | |
parent | 1b039e2a922db417e7fd7e5175476497fb083e7e (diff) | |
download | ruby-075530a6850ebf899e8874d7675fd900577c9554.tar.gz |
* suppress warnings with -Wwrite-string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1248,7 +1248,7 @@ static VALUE rb_io_inspect(VALUE obj) { rb_io_t *fptr; - char *cname; + const char *cname; const char *st = ""; fptr = RFILE(rb_io_taint_check(obj))->fptr; @@ -5057,7 +5057,7 @@ static VALUE rb_io_s_new(int argc, VALUE *argv, VALUE klass) { if (rb_block_given_p()) { - char *cname = rb_class2name(klass); + const char *cname = rb_class2name(klass); rb_warn("%s::new() does not take block; use %s::open() instead", cname, cname); @@ -6345,9 +6345,9 @@ struct copy_stream_struct { int close_src; int close_dst; off_t total; - char *syserr; + const char *syserr; int error_no; - char *notimp; + const char *notimp; rb_fdset_t fds; rb_thread_t *th; }; |