[Mesa-dev] [PATCH] mesa: Silence unused parameter warning in check_context_limits in non-debug builds
Kenneth Graunke
kenneth at whitecape.org
Tue Nov 4 00:52:39 PST 2014
On Monday, November 03, 2014 03:43:40 PM Ian Romanick wrote:
> From: Ian Romanick <ian.d.romanick at intel.com>
>
> ../../src/mesa/main/context.c: In function 'check_context_limits':
> ../../src/mesa/main/context.c:733:41: warning: unused parameter 'ctx' [-
Wunused-parameter]
>
> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
> ---
> src/mesa/main/context.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
> index 7c62dbc..400c158 100644
> --- a/src/mesa/main/context.c
> +++ b/src/mesa/main/context.c
> @@ -732,6 +732,8 @@ _mesa_init_constants(struct gl_constants *consts, gl_api
api)
> static void
> check_context_limits(struct gl_context *ctx)
> {
> + (void) ctx;
> +
> /* check that we don't exceed the size of various bitfields */
> assert(VARYING_SLOT_MAX <=
> (8 * sizeof(ctx->VertexProgram._Current->Base.OutputsWritten)));
>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20141104/0424f136/attachment.sig>
More information about the mesa-dev
mailing list