tlibthread: work around gcc warning on FreeBSD - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 0ac670585c5eac5a6348aeb0e7b018659b2dbc09
DIR parent 3d424a64ec863d963784bab7faf595fafef14832
HTML Author: Russ Cox <rsc@swtch.com>
Date: Tue, 23 Dec 2008 13:03:07 -0800
libthread: work around gcc warning on FreeBSD
Diffstat:
M src/libthread/thread.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/src/libthread/thread.c b/src/libthread/thread.c
t@@ -128,7 +128,7 @@ threadalloc(void (*fn)(void*), void *arg, uint stack)
/* call makecontext to do the real work. */
/* leave a few words open on both ends */
- t->context.uc.uc_stack.ss_sp = t->stk+8;
+ t->context.uc.uc_stack.ss_sp = (void*)(t->stk+8);
t->context.uc.uc_stack.ss_size = t->stksize-64;
#if defined(__sun__) && !defined(__MAKECONTEXT_V2_SOURCE) /* sigh */
/* can avoid this with __MAKECONTEXT_V2_SOURCE but only on SunOS 5.9 */