From 075530a6850ebf899e8874d7675fd900577c9554 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@16716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index 7bcf64741c..5c1deb7448 100644 --- a/thread.c +++ b/thread.c @@ -1471,7 +1471,7 @@ rb_thread_safe_level(VALUE thread) static VALUE rb_thread_inspect(VALUE thread) { - char *cname = rb_obj_classname(thread); + const char *cname = rb_obj_classname(thread); rb_thread_t *th; const char *status; VALUE str; @@ -2491,7 +2491,7 @@ VALUE rb_mutex_unlock(VALUE self) { mutex_t *mutex; - char *err = NULL; + const char *err = NULL; GetMutexPtr(self, mutex); native_mutex_lock(&mutex->lock); @@ -3039,7 +3039,7 @@ thread_set_trace_func_m(VALUE obj, VALUE trace) return trace; } -static char * +static const char * get_event_name(rb_event_flag_t event) { switch (event) { -- cgit v1.2.3