i965: add MAYBE_UNUSED to assert param
authorTimothy Arceri <timothy.arceri@collabora.com>
Tue, 4 Oct 2016 00:15:04 +0000 (11:15 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Tue, 4 Oct 2016 23:13:52 +0000 (10:13 +1100)
This fixes an unused variable warning on release builds.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/brw_fs.cpp

index dc000d922fccbc0c5b5acf80813e37d90099a906..58f54151fa7687916e8571b1013a75a561222334 100644 (file)
@@ -5866,7 +5866,7 @@ fs_visitor::allocate_registers(bool allow_spilling)
    schedule_instructions(SCHEDULE_POST);
 
    if (last_scratch > 0) {
-      unsigned max_scratch_size = 2 * 1024 * 1024;
+      MAYBE_UNUSED unsigned max_scratch_size = 2 * 1024 * 1024;
 
       prog_data->total_scratch = brw_get_scratch_size(last_scratch);