summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2016-05-17 13:08:39 -0700
committerDylan Baker <dylan@pnwbakers.com>2016-05-17 14:17:09 -0700
commit06259c33f5c6f1a8cd497a4ce7245295cca400b2 (patch)
treed2059e10860ceec8150051f69b95ce15c0fa0190
parent7fa32ddcbaecc6dbab3f2a3c2c1fd62f46f1f087 (diff)
util: Suppress OpenCL deprecation warnings
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Serge Martin <edb+piglit@sigluy.net>
-rw-r--r--tests/util/piglit-util-cl-enum.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/util/piglit-util-cl-enum.h b/tests/util/piglit-util-cl-enum.h
index 51336ce44..e08d3c376 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