From: Ian Romanick Date: Wed, 12 Mar 2014 23:54:17 +0000 (-0700) Subject: mesa: Clean up "unused parameter" warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1b28c8d77aefc6c821511eea3a789f3e1684be9a;p=mesa.git mesa: Clean up "unused parameter" warnings program/ir_to_mesa.cpp:2008:1: warning: unused parameter 'ir' [-Wunused-parameter] program/ir_to_mesa.cpp:2272:1: warning: unused parameter 'ir' [-Wunused-parameter] program/ir_to_mesa.cpp:2278:1: warning: unused parameter 'ir' [-Wunused-parameter] Signed-off-by: Ian Romanick Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 1ba9e432965..0923357b1bb 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -1963,7 +1963,7 @@ ir_to_mesa_visitor::visit(ir_constant *ir) } void -ir_to_mesa_visitor::visit(ir_call *ir) +ir_to_mesa_visitor::visit(ir_call *) { assert(!"ir_to_mesa: All function calls should have been inlined by now."); } @@ -2227,13 +2227,13 @@ ir_to_mesa_visitor::visit(ir_if *ir) } void -ir_to_mesa_visitor::visit(ir_emit_vertex *ir) +ir_to_mesa_visitor::visit(ir_emit_vertex *) { assert(!"Geometry shaders not supported."); } void -ir_to_mesa_visitor::visit(ir_end_primitive *ir) +ir_to_mesa_visitor::visit(ir_end_primitive *) { assert(!"Geometry shaders not supported."); }