From 99a9915b04100c353fd8d79e6940ce5bde9fb290 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 31 May 2008 09:28:20 +0000 Subject: * suppress warnings with -Wwrite-string. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/intern.h | 2 +- include/ruby/ruby.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'include/ruby') diff --git a/include/ruby/intern.h b/include/ruby/intern.h index b95f2d02d..7de34b1e8 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -583,7 +583,7 @@ VALUE rb_struct_iv_get(VALUE, const char*); VALUE rb_struct_s_members(VALUE); VALUE rb_struct_members(VALUE); VALUE rb_struct_alloc_noinit(VALUE); -VALUE rb_struct_define_without_accessor(char *, VALUE, rb_alloc_func_t, ...); +VALUE rb_struct_define_without_accessor(const char *, VALUE, rb_alloc_func_t, ...); /* thread.c */ typedef void rb_unblock_function_t(void *); typedef VALUE rb_blocking_function_t(void *); diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 307bd1c82..db6f98023 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -778,8 +778,8 @@ VALUE rb_id2str(ID); rb_intern(str)) #endif -char *rb_class2name(VALUE); -char *rb_obj_classname(VALUE); +const char *rb_class2name(VALUE); +const char *rb_obj_classname(VALUE); void rb_p(VALUE); -- cgit