From 1d49ccdd73c182ad9f280d21d5a5e88bd59db871 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 20 Sep 2016 23:04:20 +0200 Subject: Fix warning * sysdeps/mach/pt-thread-terminate.c (__pthread_thread_terminate): Cast stack address to vm_address_t before calling __thread_terminate_release. --- sysdeps/mach/pt-thread-terminate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps') diff --git a/sysdeps/mach/pt-thread-terminate.c b/sysdeps/mach/pt-thread-terminate.c index cb9e26a..5d9da26 100644 --- a/sysdeps/mach/pt-thread-terminate.c +++ b/sysdeps/mach/pt-thread-terminate.c @@ -74,7 +74,7 @@ __pthread_thread_terminate (struct __pthread *thread) /* Terminate and release all that's left. */ err = __thread_terminate_release (kernel_thread, mach_task_self (), kernel_thread, reply_port, - stackaddr, stacksize); + (vm_address_t) stackaddr, stacksize); /* The kernel does not support it yet. Leak but at least terminate correctly. */ -- cgit v1.2.3