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

Tom Stellard tom at stellard.net
Wed Jul 8 07:07:36 PDT 2015


Reviewed-by: Tom Stellard <thomas.stellard at amd.com>

-Tom
On Wed, Jul 08, 2015 at 02:54:51PM +0100, Jose Fonseca wrote:
> ---
>  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
> 
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit


More information about the Piglit mailing list