mesa/main: cast away constness
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 5 Aug 2019 15:29:05 +0000 (17:29 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 8 Aug 2019 16:20:29 +0000 (18:20 +0200)
This avoids a warning about implicitly casting away the constness of the
pointer.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Acked-by: Eric Engestrom <eric@engestrom.ch>
src/mesa/main/marshal.c

index 1827585ef0a458fd9bcbde66de9c1393269df302..43deafb2c80a74014a4acf1d4d15a7b944a3c48d 100644 (file)
@@ -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);
 }