From: Ian Romanick Date: Mon, 12 Dec 2016 19:19:20 +0000 (-0800) Subject: glsl: Silence unused parameter warning in propagate_invariance.cpp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd4fada6cddb2be4f3969c63aafca228407a2da3;p=mesa.git glsl: Silence unused parameter warning in propagate_invariance.cpp glsl/propagate_invariance.cpp: In member function ‘virtual ir_visitor_status {anonymous}::ir_invariance_propagation_visitor::visit_leave(ir_assignment*)’: glsl/propagate_invariance.cpp:86:63: warning: unused parameter ‘ir’ [-Wunused-parameter] ir_invariance_propagation_visitor::visit_leave(ir_assignment *ir) ^~ Signed-off-by: Ian Romanick Reviewed-by: Kenneth Graunke --- diff --git a/src/compiler/glsl/propagate_invariance.cpp b/src/compiler/glsl/propagate_invariance.cpp index b834b4969f9..b3f1d810cdb 100644 --- a/src/compiler/glsl/propagate_invariance.cpp +++ b/src/compiler/glsl/propagate_invariance.cpp @@ -83,7 +83,7 @@ ir_invariance_propagation_visitor::visit_enter(ir_assignment *ir) } ir_visitor_status -ir_invariance_propagation_visitor::visit_leave(ir_assignment *ir) +ir_invariance_propagation_visitor::visit_leave(ir_assignment *) { this->dst_var = NULL;