trace: Silence unused variable warnings.
authorVinson Lee <vlee@vmware.com>
Mon, 28 Dec 2009 02:12:58 +0000 (18:12 -0800)
committerVinson Lee <vlee@vmware.com>
Mon, 28 Dec 2009 02:12:58 +0000 (18:12 -0800)
src/gallium/drivers/trace/tr_context.c

index bf470b46ae1d01d753995e588ccf2c89228e6017..540855c067d8fc4e04b51d8ec9abaaaa82a4ce55 100644 (file)
@@ -52,6 +52,7 @@ trace_buffer_unwrap(struct trace_context *tr_ctx,
 
    assert(tr_buf->buffer);
    assert(tr_buf->buffer->screen == tr_scr->screen);
+   (void) tr_scr;
    return tr_buf->buffer;
 }
 
@@ -90,6 +91,7 @@ trace_surface_unwrap(struct trace_context *tr_ctx,
 
    assert(tr_surf->surface);
    assert(tr_surf->surface->texture->screen == tr_scr->screen);
+   (void) tr_scr;
    return tr_surf->surface;
 }