Browse Source

add warnings only when STARPU_DEVEL is enabled

Nathalie Furmento 10 years ago
parent
commit
d2ea199524

+ 2 - 0
examples/sched_ctx/sched_ctx_without_sched_policy.c

@@ -59,7 +59,9 @@ static void sched_ctx_func(void *descr[] STARPU_ATTRIBUTE_UNUSED, void *arg)
 static struct starpu_codelet sched_ctx_codelet =
 {
 	.cpu_funcs = {sched_ctx_func},
+#ifdef STARPU_DEVEL
 #warning FIXME: cuda_funcs should not need to be defined
+#endif
 	.cuda_funcs = {sched_ctx_func},
 	.model = NULL,
 	.nbuffers = 0,

+ 2 - 0
tests/main/codelet_null_callback.c

@@ -71,6 +71,7 @@ int main(int argc, char **argv)
 				 0);
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_insert");
 
+#ifdef STARPU_DEVEL
 #warning the following code should work
 #if 0
 	expected_y ++;
@@ -80,6 +81,7 @@ int main(int argc, char **argv)
 				 0);
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_insert");
 #endif
+#endif
 
 	expected_y ++;
 	STARPU_ASSERT_MSG(y == expected_y, "y should be equal to %d and not %d\n", expected_y, y);