hwcontext_opencl: Avoid deprecation warnings when built with post-1.2 headers
authorMark Thompson <sw@jkqxz.net>
Mon, 19 Mar 2018 22:53:11 +0000 (22:53 +0000)
committerMark Thompson <sw@jkqxz.net>
Thu, 22 Mar 2018 23:14:30 +0000 (23:14 +0000)
Matching the previous commit.  This is not applied to the installed header
because it could incorrectly suppress the warning inside user programs.

libavutil/hwcontext_opencl.c

index a725a49..f1d9d80 100644 (file)
@@ -16,6 +16,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
+
 #include <string.h>
 
 #include "config.h"