Explorar o código

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

Nathalie Furmento %!s(int64=13) %!d(string=hai) anos
pai
achega
fbf622d9b1
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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 =
 {