[Mesa-dev] [PATCH 06/11] mesa: Silence unused parameter warning
Timothy Arceri
timothy.arceri at collabora.com
Wed Jun 15 03:59:01 UTC 2016
On Tue, 2016-06-14 at 19:01 -0700, Ian Romanick wrote:
> From: Ian Romanick <ian.d.romanick at intel.com>
>
> main/pipelineobj.c: In function ‘delete_pipelineobj_cb’:
> main/pipelineobj.c:110:30: warning: unused parameter ‘id’ [-Wunused-
> parameter]
> delete_pipelineobj_cb(GLuint id, void *data, void *userData)
> ^
>
> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
> ---
> src/mesa/main/pipelineobj.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/main/pipelineobj.c
> b/src/mesa/main/pipelineobj.c
> index 9ecbcc9..8483752 100644
> --- a/src/mesa/main/pipelineobj.c
> +++ b/src/mesa/main/pipelineobj.c
> @@ -107,7 +107,7 @@ _mesa_init_pipeline(struct gl_context *ctx)
> * Callback for deleting a pipeline object. Called by
> _mesa_HashDeleteAll().
> */
> static void
> -delete_pipelineobj_cb(GLuint id, void *data, void *userData)
> +delete_pipelineobj_cb(UNUSED GLuint id, void *data, void *userData)
I doesnt look like this has been used in core mesa before, as long as
others are ok with it.
Reviewed-by: Timothy Arceri <timothy.arceri at collabora.com>
> {
> struct gl_pipeline_object *obj = (struct gl_pipeline_object *)
> data;
> struct gl_context *ctx = (struct gl_context *) userData;
More information about the mesa-dev
mailing list