i915, i965: Silence unused parameter warnings in intel_batchbuffer_advance
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 2 Sep 2015 22:44:04 +0000 (15:44 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 11 Sep 2015 03:29:51 +0000 (20:29 -0700)
These only occurred in release builds, but they occurred in every file
that included intel_batchbuffer.h.  Lots of spam. :(

intel_batchbuffer.h: In function 'intel_batchbuffer_advance':
intel_batchbuffer.h:153:47: warning: unused parameter 'brw' [-Wunused-parameter]
 intel_batchbuffer_advance(struct brw_context *brw)
                                               ^

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i915/intel_batchbuffer.h
src/mesa/drivers/dri/i965/intel_batchbuffer.h

index feecc01394ce146be5d4090da3a51e7e1f5ecb0a..c4efa762bcb9026c06830e29509578c446874455 100644 (file)
@@ -128,6 +128,8 @@ intel_batchbuffer_advance(struct intel_context *intel)
       abort();
    }
    batch->total = 0;
+#else
+   (void) intel;
 #endif
 }
 
index 84add927c9a1c919d4d0e6f689fd820b32955989..2b177d3a8882361a04031e4cc9aa0ab83690f46e 100644 (file)
@@ -162,6 +162,8 @@ intel_batchbuffer_advance(struct brw_context *brw)
       abort();
    }
    batch->total = 0;
+#else
+   (void) brw;
 #endif
 }