[Mesa-dev] [PATCH 9/9] i915, i965: Silence unused parameter warnings in intel_batchbuffer_advance

Anuj Phogat anuj.phogat at gmail.com
Thu Sep 10 12:24:15 PDT 2015


On Wed, Sep 9, 2015 at 7:18 PM, Ian Romanick <idr at freedesktop.org> wrote:

> From: Ian Romanick <ian.d.romanick at intel.com>
>
> 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 at intel.com>
> ---
>  src/mesa/drivers/dri/i915/intel_batchbuffer.h | 2 ++
>  src/mesa/drivers/dri/i965/intel_batchbuffer.h | 2 ++
>  2 files changed, 4 insertions(+)
>
> diff --git a/src/mesa/drivers/dri/i915/intel_batchbuffer.h
> b/src/mesa/drivers/dri/i915/intel_batchbuffer.h
> index feecc01..c4efa76 100644
> --- a/src/mesa/drivers/dri/i915/intel_batchbuffer.h
> +++ b/src/mesa/drivers/dri/i915/intel_batchbuffer.h
> @@ -128,6 +128,8 @@ intel_batchbuffer_advance(struct intel_context *intel)
>        abort();
>     }
>     batch->total = 0;
> +#else
> +   (void) intel;
>  #endif
>  }
>
> diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.h
> b/src/mesa/drivers/dri/i965/intel_batchbuffer.h
> index 84add92..2b177d3 100644
> --- a/src/mesa/drivers/dri/i965/intel_batchbuffer.h
> +++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.h
> @@ -162,6 +162,8 @@ intel_batchbuffer_advance(struct brw_context *brw)
>        abort();
>     }
>     batch->total = 0;
> +#else
> +   (void) brw;
>  #endif
>  }
>
> --
> 2.1.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>

Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150910/372971e7/attachment.html>


More information about the mesa-dev mailing list