<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>
intel_fbo.c: In function 'intel_alloc_window_storage':<br>
intel_fbo.c:415:48: warning: unused parameter 'ctx' [-Wunused-parameter]<br>
 intel_alloc_window_storage(struct gl_context * ctx, struct gl_renderbuffer *rb,<br>
                                                ^<br>
intel_fbo.c: In function 'intel_nop_alloc_storage':<br>
intel_fbo.c:428:74: warning: unused parameter 'rb' [-Wunused-parameter]<br>
 intel_nop_alloc_storage(struct gl_context * ctx, struct gl_renderbuffer *rb,<br>
                                                                          ^<br>
intel_fbo.c:429:32: warning: unused parameter 'internalFormat' [-Wunused-parameter]<br>
                         GLenum internalFormat, GLuint width, GLuint height)<br>
                                ^<br>
intel_fbo.c:429:55: warning: unused parameter 'width' [-Wunused-parameter]<br>
                         GLenum internalFormat, GLuint width, GLuint height)<br>
                                                       ^<br>
intel_fbo.c:429:69: warning: unused parameter 'height' [-Wunused-parameter]<br>
                         GLenum internalFormat, GLuint width, GLuint height)<br>
                                                                     ^<br>
intel_fbo.c: In function 'intel_blit_framebuffer_with_blitter':<br>
intel_fbo.c:790:61: warning: unused parameter 'filter' [-Wunused-parameter]<br>
                                     GLbitfield mask, GLenum filter)<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/i965/intel_fbo.c | 11 ++++++++---<br>
 1 file changed, 8 insertions(+), 3 deletions(-)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/intel_fbo.c b/src/mesa/drivers/dri/i965/intel_fbo.c<br>
index 64d57e8..cc90a49 100644<br>
--- a/src/mesa/drivers/dri/i965/intel_fbo.c<br>
+++ b/src/mesa/drivers/dri/i965/intel_fbo.c<br>
@@ -415,6 +415,7 @@ static GLboolean<br>
 intel_alloc_window_storage(struct gl_context * ctx, struct gl_renderbuffer *rb,<br>
                            GLenum internalFormat, GLuint width, GLuint height)<br>
 {<br>
+   (void) ctx;<br>
    assert(rb->Name == 0);<br>
    rb->Width = width;<br>
    rb->Height = height;<br>
@@ -428,6 +429,10 @@ static GLboolean<br>
 intel_nop_alloc_storage(struct gl_context * ctx, struct gl_renderbuffer *rb,<br>
                         GLenum internalFormat, GLuint width, GLuint height)<br>
 {<br>
+   (void) rb;<br>
+   (void) internalFormat;<br>
+   (void) width;<br>
+   (void) height;<br></blockquote><div><br></div><div>Using a macro might make the code more readable.</div><div>#define UNUSED(x) (void) (x) </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
    _mesa_problem(ctx, "intel_nop_alloc_storage should never be called.");<br>
    return false;<br>
 }<br>
@@ -787,7 +792,7 @@ intel_blit_framebuffer_with_blitter(struct gl_context *ctx,<br>
                                     GLint srcX1, GLint srcY1,<br>
                                     GLint dstX0, GLint dstY0,<br>
                                     GLint dstX1, GLint dstY1,<br>
-                                    GLbitfield mask, GLenum filter)<br>
+                                    GLbitfield mask)<br>
 {<br>
    struct brw_context *brw = brw_context(ctx);<br>
<br>
@@ -907,7 +912,7 @@ intel_blit_framebuffer(struct gl_context *ctx,<br>
    mask = intel_blit_framebuffer_with_blitter(ctx, readFb, drawFb,<br>
                                               srcX0, srcY0, srcX1, srcY1,<br>
                                               dstX0, dstY0, dstX1, dstY1,<br>
-                                              mask, filter);<br>
+                                              mask);<br>
    if (mask == 0x0)<br>
       return;<br>
<br>
@@ -945,7 +950,7 @@ gen4_blit_framebuffer(struct gl_context *ctx,<br>
    mask = intel_blit_framebuffer_with_blitter(ctx, readFb, drawFb,<br>
                                               srcX0, srcY0, srcX1, srcY1,<br>
                                               dstX0, dstY0, dstX1, dstY1,<br>
-                                              mask, filter);<br>
+                                              mask);<br>
    if (mask == 0x0)<br>
       return;<br>
<span class="HOEnZb"><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">Irrespective of the above suggestion, this patch is:</div><div class="gmail_extra">Reviewed-by: Anuj Phogat <<a href="mailto:anuj.phogat@gmail.com">anuj.phogat@gmail.com</a>></div></div>