From 115fec062ccf7c6d72c8d5f64b7a5d84c9fb2dd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Fri, 7 Feb 2020 14:14:05 +0900 Subject: more on NULL versus functions. Function pointers are not void*. See also ce4ea956d24eab5089a143bba38126f2b11b55b6 8427fca49bd85205f5a8766292dd893f003c0e48 --- thread_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread_sync.c') diff --git a/thread_sync.c b/thread_sync.c index efe295e64c..7af5172818 100644 --- a/thread_sync.c +++ b/thread_sync.c @@ -78,7 +78,7 @@ static const char* rb_mutex_unlock_th(rb_mutex_t *mutex, rb_thread_t *th); * */ -#define mutex_mark NULL +#define mutex_mark ((void(*)(void*))0) static size_t rb_mutex_num_waiting(rb_mutex_t *mutex) -- cgit v1.2.3