Eliminate warning about unused start_routine for Orbis and PSP2
authorIvan Maidanski <ivmai@mail.ru>
Wed, 28 Feb 2018 02:55:59 +0000 (05:55 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 28 Feb 2018 02:55:59 +0000 (05:55 +0300)
(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.

pthread_support.c

index 935db03..f42b5df 100644 (file)
@@ -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)