[Piglit] [PATCH v3 2/2] util: Suppress OpenCL deprecation warnings

Dylan Baker dylan at pnwbakers.com
Tue May 17 20:10:52 UTC 2016


Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---

v3 - Use OpenCL deprecation macros (EdB)

 tests/util/piglit-util-cl-enum.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/util/piglit-util-cl-enum.h b/tests/util/piglit-util-cl-enum.h
index 51336ce..e08d3c3 100644
--- a/tests/util/piglit-util-cl-enum.h
+++ b/tests/util/piglit-util-cl-enum.h
@@ -25,6 +25,11 @@
 #ifndef PIGLIT_UTIL_CL_ENUM_H
 #define PIGLIT_UTIL_CL_ENUM_H
 
+#define CL_USE_DEPRECATED_OPENCL_1_0_APIS
+#define CL_USE_DEPRECATED_OPENCL_1_1_APIS
+#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
+#define CL_USE_DEPRECATED_OPENCL_2_0_APIS
+
 #ifdef __APPLE__
 #include <OpenCL/opencl.h>
 #else
-- 
2.8.2



More information about the Piglit mailing list