Samuel Thibault пре 9 година
родитељ
комит
3e8e145f0d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/common/utils.c

+ 1 - 1
src/common/utils.c

@@ -286,11 +286,11 @@ void _starpu_sleep(struct timespec ts)
 char *starpu_getenv(const char *str)
 {
 #ifndef STARPU_SIMGRID
+#if defined(STARPU_DEVEL) || defined(STARPU_DEBUG)
 	struct _starpu_worker * worker;
 
 	worker = _starpu_get_local_worker_key();
 
-#if defined(STARPU_DEVEL) || defined(STARPU_DEBUG)
 	if (worker && worker->worker_is_initialized)
 		_STARPU_DISP( "getenv should not be called from running workers, only for main() or worker initialization, since it is not reentrant\n");
 #endif