Added patch to silence opencl deprecation warnings to allow compilation with -Werror.

This commit is contained in:
Sebastian Lackner 2015-07-31 05:57:11 +02:00
parent e21bed742a
commit 14975afd63
2 changed files with 51 additions and 12 deletions

View File

@ -0,0 +1,23 @@
From 987688e2ad1576c9a31311e745c0161274a46f15 Mon Sep 17 00:00:00 2001
From: Sebastian Lackner <sebastian@fds-team.de>
Date: Fri, 31 Jul 2015 05:42:05 +0200
Subject: opencl: Silence deprecation warning for various OpenCL functions.
---
dlls/opencl/Makefile.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/opencl/Makefile.in b/dlls/opencl/Makefile.in
index 1f6e76c..3523d0a 100644
--- a/dlls/opencl/Makefile.in
+++ b/dlls/opencl/Makefile.in
@@ -1,5 +1,6 @@
MODULE = opencl.dll
EXTRALIBS = $(OPENCL_LIBS)
+EXTRADEFS = -Wno-deprecated-declarations
C_SRCS = \
opencl.c
--
2.5.0

View File

@ -188,6 +188,7 @@ patch_enable_all ()
enable_nvcuvid_CUDA_Video_Support="$1"
enable_nvencodeapi_Video_Encoder="$1"
enable_openal32_EFX_Extension="$1"
enable_opencl_Silence_Deprecation_Warning="$1"
enable_opengl32_Revert_Disable_Ext="$1"
enable_quartz_MediaSeeking_Positions="$1"
enable_rasapi32_RasEnumDevicesA="$1"
@ -642,6 +643,9 @@ patch_enable ()
openal32-EFX_Extension)
enable_openal32_EFX_Extension="$2"
;;
opencl-Silence_Deprecation_Warning)
enable_opencl_Silence_Deprecation_Warning="$2"
;;
opengl32-Revert_Disable_Ext)
enable_opengl32_Revert_Disable_Ext="$2"
;;
@ -3968,6 +3972,18 @@ if test "$enable_openal32_EFX_Extension" -eq 1; then
) >> "$patchlist"
fi
# Patchset opencl-Silence_Deprecation_Warning
# |
# | Modified files:
# | * dlls/opencl/Makefile.in
# |
if test "$enable_opencl_Silence_Deprecation_Warning" -eq 1; then
patch_apply opencl-Silence_Deprecation_Warning/0001-opencl-Silence-deprecation-warning-for-various-OpenC.patch
(
echo '+ { "Sebastian Lackner", "opencl: Silence deprecation warning for various OpenCL functions.", 1 },';
) >> "$patchlist"
fi
# Patchset opengl32-Revert_Disable_Ext
# |
# | This patchset fixes the following Wine bugs:
@ -4895,6 +4911,18 @@ if test "$enable_wined3d_CSMT_Helper" -eq 1; then
) >> "$patchlist"
fi
# Patchset wined3d-UnhandledBlendFactor
# |
# | Modified files:
# | * dlls/wined3d/state.c
# |
if test "$enable_wined3d_UnhandledBlendFactor" -eq 1; then
patch_apply wined3d-UnhandledBlendFactor/0001-wined3d-Silence-repeated-Unhandled-blend-factor-0-me.patch
(
echo '+ { "Sebastian Lackner", "wined3d: Silence repeated '\''Unhandled blend factor 0'\'' messages.", 1 },';
) >> "$patchlist"
fi
# Patchset wined3d-resource_check_usage
# |
# | Modified files:
@ -4994,18 +5022,6 @@ if test "$enable_wined3d_Revert_PixelFormat" -eq 1; then
) >> "$patchlist"
fi
# Patchset wined3d-UnhandledBlendFactor
# |
# | Modified files:
# | * dlls/wined3d/state.c
# |
if test "$enable_wined3d_UnhandledBlendFactor" -eq 1; then
patch_apply wined3d-UnhandledBlendFactor/0001-wined3d-Silence-repeated-Unhandled-blend-factor-0-me.patch
(
echo '+ { "Sebastian Lackner", "wined3d: Silence repeated '\''Unhandled blend factor 0'\'' messages.", 1 },';
) >> "$patchlist"
fi
# Patchset wined3d-CSMT_Main
# |
# | This patchset fixes the following Wine bugs: