mesa: Silence unused parameter warning
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 13 Jun 2016 20:45:00 +0000 (13:45 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 20 Jun 2016 18:18:38 +0000 (11:18 -0700)
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@intel.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/mesa/main/pipelineobj.c

index 9ecbcc9e9f6e2ff77afd33e5c691d8ba49f0889c..8483752508347dd496d4d7a6f7dc8486b54668e0 100644 (file)
@@ -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)
 {
    struct gl_pipeline_object *obj = (struct gl_pipeline_object *) data;
    struct gl_context *ctx = (struct gl_context *) userData;