ruby-changes:46422
From: nobu <ko1@a...>
Date: Tue, 2 May 2017 00:17:38 +0900 (JST)
Subject: [ruby-changes:46422] nobu:r58532 (trunk): thread.c: suppress warnings [ci skip]
nobu 2017-05-02 00:17:32 +0900 (Tue, 02 May 2017) New Revision: 58532 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58532 Log: 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. Modified files: trunk/thread.c Index: thread.c =================================================================== --- thread.c (revision 58531) +++ thread.c (revision 58532) @@ -269,7 +269,7 @@ rb_thread_s_debug_set(VALUE self, VALUE https://github.com/ruby/ruby/blob/trunk/thread.c#L269 #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" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/