Browse Source

tests/datawizard/readonly.c: only define function when needed

Nathalie Furmento 13 years ago
parent
commit
fbf622d9b1
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tests/datawizard/readonly.c

+ 2 - 0
tests/datawizard/readonly.c

@@ -21,10 +21,12 @@
 #endif
 #include "../helper.h"
 
+#ifdef STARPU_USE_OPENCL
 static void codelet(void *descr[], __attribute__ ((unused)) void *_args)
 {
      FPRINTF(stderr, "codelet\n");
 }
+#endif
 
 static struct starpu_codelet cl =
 {