소스 검색

Fix warning

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