<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:0 0 0 .8ex;border-left:1px #ccc 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_mipmap_tree.h. Lots of spam. :(<br>
<br>
intel_mipmap_tree.h: In function 'intel_miptree_check_level_layer':<br>
intel_mipmap_tree.h:595:59: warning: unused parameter 'mt' [-Wunused-parameter]<br>
intel_miptree_check_level_layer(struct intel_mipmap_tree *mt,<br>
^<br>
intel_mipmap_tree.h:596:42: warning: unused parameter 'level' [-Wunused-parameter]<br>
uint32_t level,<br>
^<br>
intel_mipmap_tree.h:597:42: warning: unused parameter 'layer' [-Wunused-parameter]<br>
uint32_t layer)<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_mipmap_tree.h | 4 ++++<br>
src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 4 ++++<br>
2 files changed, 8 insertions(+)<br>
<br>
diff --git a/src/mesa/drivers/dri/i915/intel_mipmap_tree.h b/src/mesa/drivers/dri/i915/intel_mipmap_tree.h<br>
index 77b1f54..d711a29 100644<br>
--- a/src/mesa/drivers/dri/i915/intel_mipmap_tree.h<br>
+++ b/src/mesa/drivers/dri/i915/intel_mipmap_tree.h<br>
@@ -285,6 +285,10 @@ intel_miptree_check_level_layer(struct intel_mipmap_tree *mt,<br>
uint32_t level,<br>
uint32_t layer)<br>
{<br>
+ (void) mt;<br>
+ (void) level;<br>
+ (void) layer;<br>
+<br>
assert(level >= mt->first_level);<br>
assert(level <= mt->last_level);<br>
assert(layer < mt->level[level].depth);<br>
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h<br>
index 81e5f52..d91d4be 100644<br>
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h<br>
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h<br>
@@ -596,6 +596,10 @@ intel_miptree_check_level_layer(struct intel_mipmap_tree *mt,<br>
uint32_t level,<br>
uint32_t layer)<br>
{<br>
+ (void) mt;<br>
+ (void) level;<br>
+ (void) layer;<br>
+<br>
assert(level >= mt->first_level);<br>
assert(level <= mt->last_level);<br>
assert(layer < mt->level[level].depth);<br>
<span class="HOEnZb"><font color="#888888">--<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></font></span></blockquote><div><br></div><div>Same suggestion as on patch 1.</div><div><br></div><div>Reviewed-by: Anuj Phogat <<a href="mailto:anuj.phogat@gmail.com">anuj.phogat@gmail.com</a>> </div></div></div><div class="gmail_extra"><br></div></div>