From e0a740c633da5d8f2b6040f7ef4929c95539aed8 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Mon, 5 Aug 2019 17:29:05 +0200 Subject: [PATCH] mesa/main: cast away constness This avoids a warning about implicitly casting away the constness of the pointer. Signed-off-by: Erik Faye-Lund Acked-by: Eric Engestrom --- src/mesa/main/marshal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/marshal.c b/src/mesa/main/marshal.c index 1827585ef0a..43deafb2c80 100644 --- a/src/mesa/main/marshal.c +++ b/src/mesa/main/marshal.c @@ -130,7 +130,7 @@ _mesa_unmarshal_ShaderSource(struct gl_context *ctx, } CALL_ShaderSource(ctx->CurrentServerDispatch, (cmd->shader, cmd->count, string, cmd_length)); - free(string); + free((void *)string); } -- 2.30.2