From: Ivan Maidanski Date: Wed, 28 Feb 2018 02:55:59 +0000 (+0300) Subject: Eliminate warning about unused start_routine for Orbis and PSP2 X-Git-Tag: v8.0.0~322 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4ea875c9e2f875bc004004de7b48185bd50c02bd;p=gc Eliminate warning about unused start_routine for Orbis and PSP2 (fix of commits d5dad58, cd63cf1) Issue #173 (bdwgc). * pthread_support.c (GC_inner_start_routine, GC_start_routine): Do not define if SN_TARGET_ORBIS or SN_TARGET_PSP2. --- diff --git a/pthread_support.c b/pthread_support.c index 935db034..f42b5dff 100644 --- a/pthread_support.c +++ b/pthread_support.c @@ -1786,12 +1786,13 @@ GC_INNER_PTHRSTART GC_thread GC_start_rtn_prepare_thread( return me; } -GC_INNER_PTHRSTART void * GC_CALLBACK GC_inner_start_routine( +#if !defined(SN_TARGET_ORBIS) && !defined(SN_TARGET_PSP2) + GC_INNER_PTHRSTART void * GC_CALLBACK GC_inner_start_routine( struct GC_stack_base *sb, void *arg); /* defined in pthread_start.c */ -STATIC void * GC_start_routine(void * arg) -{ + STATIC void * GC_start_routine(void * arg) + { # ifdef INCLUDE_LINUX_THREAD_DESCR struct GC_stack_base sb; @@ -1811,9 +1812,8 @@ STATIC void * GC_start_routine(void * arg) # else return GC_call_with_stack_base(GC_inner_start_routine, arg); # endif -} + } -#if !defined(SN_TARGET_ORBIS) && !defined(SN_TARGET_PSP2) GC_API int WRAP_FUNC(pthread_create)(pthread_t *new_thread, GC_PTHREAD_CREATE_CONST pthread_attr_t *attr, void *(*start_routine)(void *), void *arg)