aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-01 15:17:32 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-01 15:17:32 +0000
commit52942f25d4d6e2c75026fe95212cce0fc3306c8f (patch)
tree6aa1ceb76189af252f60df6d35adbf3136361f1b /thread.c
parent61cc638c4333f922786e1a05100c21a873e22a99 (diff)
downloadruby-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 6ccfed0003..c15c36fda4 100644
--- a/thread.c
+++ b/thread.c
@@ -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"