[Mesa-dev] [PATCH 5/6] i965: Silence unused parameter warning

Ian Romanick idr at freedesktop.org
Fri Feb 27 18:50:49 PST 2015

From: Ian Romanick <ian.d.romanick at intel.com>

All dd functions take a gl_context as the first parameter.  Instead of
removing it, just silence the warning.

brw_performance_monitor.c: In function 'brw_new_perf_monitor':
brw_performance_monitor.c:1354:41: warning: unused parameter 'ctx' [-Wunused-parameter]
 brw_new_perf_monitor(struct gl_context *ctx)

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Cc: Carl Worth <cworth at cworth.org>
 src/mesa/drivers/dri/i965/brw_performance_monitor.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/drivers/dri/i965/brw_performance_monitor.c b/src/mesa/drivers/dri/i965/brw_performance_monitor.c
index 297150f..6c31d4c 100644
--- a/src/mesa/drivers/dri/i965/brw_performance_monitor.c
+++ b/src/mesa/drivers/dri/i965/brw_performance_monitor.c
@@ -1353,6 +1353,7 @@ brw_get_perf_monitor_result(struct gl_context *ctx,
 static struct gl_perf_monitor_object *
 brw_new_perf_monitor(struct gl_context *ctx)
+   (void) ctx;
    return calloc(1, sizeof(struct brw_perf_monitor_object));

More information about the mesa-dev mailing list