[Piglit] [PATCH] cl/api: Avoid deprecated declarations warnings.

Jose Fonseca jfonseca at vmware.com
Wed Jul 8 06:54:51 PDT 2015


---
 tests/cl/api/create-image.c    | 2 ++
 tests/cl/api/unload-compiler.c | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/tests/cl/api/create-image.c b/tests/cl/api/create-image.c
index a1e143b..1ee5f71 100644
--- a/tests/cl/api/create-image.c
+++ b/tests/cl/api/create-image.c
@@ -24,6 +24,8 @@
  *
  */
 
+#define CL_USE_DEPRECATED_OPENCL_1_1_APIS
+
 #include "piglit-framework-cl-api.h"
 
 PIGLIT_CL_API_TEST_CONFIG_BEGIN
diff --git a/tests/cl/api/unload-compiler.c b/tests/cl/api/unload-compiler.c
index 7c915e8..382d0dc 100644
--- a/tests/cl/api/unload-compiler.c
+++ b/tests/cl/api/unload-compiler.c
@@ -30,6 +30,8 @@
  *   cl_int clUnloadCompiler (void)
  */
 
+#define CL_USE_DEPRECATED_OPENCL_1_1_APIS
+
 #include "piglit-framework-cl-api.h"
 
 
-- 
2.1.4



More information about the Piglit mailing list