OSDN Git Service

i965: Silence one more compile warning.
authorEric Anholt <eric@anholt.net>
Thu, 11 Apr 2013 17:38:04 +0000 (10:38 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 12 Apr 2013 23:32:14 +0000 (16:32 -0700)
We don't want to store this thing in the class, and we do need the
definition to be at the top of the function and held onto until the end
here, so there's not much to do besides (void) reference it.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp

index b82add9..5f659b1 100644 (file)
@@ -892,6 +892,7 @@ fs_visitor::setup_uniform_values(ir_variable *ir)
    /* Make sure we actually initialized the right amount of stuff here. */
    assert(params_before + ir->type->component_slots() ==
           c->prog_data.nr_params);
+   (void)params_before;
 }