소스 검색

enable warning only if STARPU_DEVEL is defined

Nathalie Furmento 12 년 전
부모
커밋
699a5e6e32
2개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 1
      include/starpu_sched_ctx.h
  2. 3 1
      sched_ctx_hypervisor/include/sched_ctx_hypervisor.h

+ 3 - 1
include/starpu_sched_ctx.h

@@ -24,7 +24,9 @@ extern "C"
 {
 #endif
 
-#warning rename all objects to start with starpu_sched_ctx
+#ifdef STARPU_DEVEL
+#  warning rename all objects to start with starpu_sched_ctx
+#endif
 
 /* generic structure used by the scheduling contexts to iterate the workers */
 struct starpu_sched_ctx_worker_collection

+ 3 - 1
sched_ctx_hypervisor/include/sched_ctx_hypervisor.h

@@ -20,7 +20,9 @@
 #include <starpu.h>
 #include <pthread.h>
 
-#warning rename all objects to start with starpu_sched_ctx_hypervisor
+#ifdef STARPU_DEVEL
+#  warning rename all objects to start with starpu_sched_ctx_hypervisor
+#endif
 
 /* ioctl properties*/
 #define HYPERVISOR_MAX_IDLE -1