Explorar o código

enable warning only if STARPU_DEVEL is defined

Nathalie Furmento %!s(int64=12) %!d(string=hai) anos
pai
achega
699a5e6e32

+ 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