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 | 52942f25d4d6e2c75026fe95212cce0fc3306c8f (patch) | |
tree | 6aa1ceb76189af252f60df6d35adbf3136361f1b /thread.c | |
parent | 61cc638c4333f922786e1a05100c21a873e22a99 (diff) | |
download | ruby-52942f25d4d6e2c75026fe95212cce0fc3306c8f.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" |