i965/fs: Silence unused parameter warning
authorIan Romanick <ian.d.romanick@intel.com>
Sat, 28 Feb 2015 02:19:33 +0000 (18:19 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 9 Mar 2015 21:07:14 +0000 (14:07 -0700)
I don't this opt_cmod_propagation_local ever used the fs_visitor.

brw_fs_cmod_propagation.cpp:52:40: warning: unused parameter 'v' [-Wunused-parameter]
 opt_cmod_propagation_local(fs_visitor *v, bblock_t *block)
                                        ^

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/brw_fs_cmod_propagation.cpp

index 58890ee9bede5086332ed9d8df526fbc513417bc..d0ca2f9ce3158fa6488b8d98d6540ac69d3ba482 100644 (file)
@@ -49,7 +49,7 @@
  */
 
 static bool
-opt_cmod_propagation_local(fs_visitor *v, bblock_t *block)
+opt_cmod_propagation_local(bblock_t *block)
 {
    bool progress = false;
    int ip = block->end_ip + 1;
@@ -128,7 +128,7 @@ fs_visitor::opt_cmod_propagation()
    bool progress = false;
 
    foreach_block_reverse(block, cfg) {
-      progress = opt_cmod_propagation_local(this, block) || progress;
+      progress = opt_cmod_propagation_local(block) || progress;
    }
 
    if (progress)