Bläddra i källkod

enable warning only if STARPU_DEVEL is defined

Nathalie Furmento 12 år sedan
förälder
incheckning
699a5e6e32
2 ändrade filer med 6 tillägg och 2 borttagningar
  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