Browse Source

fix warning

Samuel Thibault 3 years ago
parent
commit
f5b583e89a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/core/workers.c

+ 2 - 0
src/core/workers.c

@@ -1265,7 +1265,9 @@ static void _starpu_build_tree(void)
 static starpu_pthread_mutex_t sig_handlers_mutex = STARPU_PTHREAD_MUTEX_INITIALIZER;
 static void (*act_sigint)(int);
 static void (*act_sigsegv)(int);
+#ifdef SIGTRAP
 static void (*act_sigtrap)(int);
+#endif
 
 void _starpu_handler(int sig)
 {