소스 검색

fix warning

Samuel Thibault 7 년 전
부모
커밋
0271596720
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/common/thread.c

+ 2 - 0
src/common/thread.c

@@ -356,6 +356,8 @@ int starpu_pthread_cond_timedwait(starpu_pthread_cond_t *cond, starpu_pthread_mu
 	_starpu_pthread_cond_auto_init(cond);
 #if SIMGRID_VERSION_MAJOR > 3 || (SIMGRID_VERSION_MAJOR == 3 && SIMGRID_VERSION_MINOR >= 18)
 	ret = xbt_cond_timedwait(*cond, *mutex, delay) ? -ETIMEDOUT : 0;
+#else
+	STARPU_ASSERT_MSG(0, "simgrid version is too old for this");
 #endif
 
 	_STARPU_TRACE_COND_WAIT_END();