Browse Source

warning fix

ncannasse 7 years ago
parent
commit
f728c7a6b5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/std/thread.c

+ 2 - 0
src/std/thread.c

@@ -378,6 +378,7 @@ typedef struct {
 	void *param;
 } thread_start;
 
+#ifdef HL_THREADS
 static void gc_thread_entry( thread_start *_s ) {
 	thread_start s = *_s;
 	hl_register_thread(&s);
@@ -386,6 +387,7 @@ static void gc_thread_entry( thread_start *_s ) {
 	s.callb(s.param);
 	hl_unregister_thread();
 }
+#endif
 
 HL_PRIM hl_thread *hl_thread_start( void *callback, void *param, bool withGC ) {
 #ifdef HL_THREADS