From: Erik Faye-Lund Date: Mon, 5 Aug 2019 15:29:05 +0000 (+0200) Subject: mesa/main: cast away constness X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e0a740c633da5d8f2b6040f7ef4929c95539aed8;p=mesa.git 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 --- 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); }