glsl: Silence unused parameter warning in propagate_invariance.cpp
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 12 Dec 2016 19:19:20 +0000 (11:19 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 19 Dec 2016 23:55:44 +0000 (15:55 -0800)
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 <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/propagate_invariance.cpp

index b834b4969f9f82270b0ae1127efa5b057c6c336b..b3f1d810cdbe4ea45df76981beb9966f83afb45c 100644 (file)
@@ -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;