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 | 99a9915b04100c353fd8d79e6940ce5bde9fb290 (patch) | |
| tree | 45dd63e7b9262c43ebd8ef19b0057a150d1e3eb5 /thread.c | |
| parent | a7fd673519929de15447ed524b3f40d9750e7752 (diff) | |
| download | ruby-99a9915b04100c353fd8d79e6940ce5bde9fb290.tar.gz ruby-99a9915b04100c353fd8d79e6940ce5bde9fb290.tar.xz ruby-99a9915b04100c353fd8d79e6940ce5bde9fb290.zip | |
* suppress warnings with -Wwrite-string.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
| -rw-r--r-- | thread.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) { |
