diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-01 15:17:32 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-01 15:17:32 +0000 |
commit | ff2422d77c0b2a58afb4fcfd1c5b0bc8d6e34811 (patch) | |
tree | 6aa1ceb76189af252f60df6d35adbf3136361f1b /thread.c | |
parent | 8fabb5f5a861242997df20e662a7ea9c95f9e5b5 (diff) | |
download | ruby-ff2422d77c0b2a58afb4fcfd1c5b0bc8d6e34811.tar.gz |
thread.c: suppress warnings [ci skip]
* thread.c (fill_thread_id_string): cast to void pointer to
suppress warnings when pthread_t is not pointer type.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -269,7 +269,7 @@ rb_thread_s_debug_set(VALUE self, VALUE val) #endif #ifndef fill_thread_id_str -# define fill_thread_id_string(thid, buf) (thid) +# define fill_thread_id_string(thid, buf) (void *)(thid) # define fill_thread_id_str(th) (void)0 # define thread_id_str(th) ((void *)(th)->thread_id) # define PRI_THREAD_ID "p" |