<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 9, 2015 at 7:18 PM, Ian Romanick <span dir="ltr"><<a href="mailto:idr@freedesktop.org" target="_blank">idr@freedesktop.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">From: Ian Romanick <<a href="mailto:ian.d.romanick@intel.com">ian.d.romanick@intel.com</a>><br>
<br>
These only occurred in release builds, but they occurred in every file<br>
that included intel_batchbuffer.h.  Lots of spam. :(<br>
<br>
intel_batchbuffer.h: In function 'intel_batchbuffer_advance':<br>
intel_batchbuffer.h:153:47: warning: unused parameter 'brw' [-Wunused-parameter]<br>
 intel_batchbuffer_advance(struct brw_context *brw)<br>
                                               ^<br>
<br>
Signed-off-by: Ian Romanick <<a href="mailto:ian.d.romanick@intel.com">ian.d.romanick@intel.com</a>><br>
---<br>
 src/mesa/drivers/dri/i915/intel_batchbuffer.h | 2 ++<br>
 src/mesa/drivers/dri/i965/intel_batchbuffer.h | 2 ++<br>
 2 files changed, 4 insertions(+)<br>
<br>
diff --git a/src/mesa/drivers/dri/i915/intel_batchbuffer.h b/src/mesa/drivers/dri/i915/intel_batchbuffer.h<br>
index feecc01..c4efa76 100644<br>
--- a/src/mesa/drivers/dri/i915/intel_batchbuffer.h<br>
+++ b/src/mesa/drivers/dri/i915/intel_batchbuffer.h<br>
@@ -128,6 +128,8 @@ intel_batchbuffer_advance(struct intel_context *intel)<br>
       abort();<br>
    }<br>
    batch->total = 0;<br>
+#else<br>
+   (void) intel;<br>
 #endif<br>
 }<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.h b/src/mesa/drivers/dri/i965/intel_batchbuffer.h<br>
index 84add92..2b177d3 100644<br>
--- a/src/mesa/drivers/dri/i965/intel_batchbuffer.h<br>
+++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.h<br>
@@ -162,6 +162,8 @@ intel_batchbuffer_advance(struct brw_context *brw)<br>
       abort();<br>
    }<br>
    batch->total = 0;<br>
+#else<br>
+   (void) brw;<br>
 #endif<br>
 }<br>
<span class=""><font color="#888888"><br>
--<br>
2.1.0<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div><div class="gmail_extra"><span style="font-size:12.8000001907349px">Reviewed-by: Anuj Phogat <</span><a href="mailto:anuj.phogat@gmail.com" target="_blank" style="font-size:12.8000001907349px">anuj.phogat@gmail.com</a><span style="font-size:12.8000001907349px">></span><br></div></div>