projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7509711
)
mesa/main: cast away constness
author
Erik Faye-Lund
<erik.faye-lund@collabora.com>
Mon, 5 Aug 2019 15:29:05 +0000
(17:29 +0200)
committer
Erik 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
patch
|
blob
|
history
diff --git
a/src/mesa/main/marshal.c
b/src/mesa/main/marshal.c
index 1827585ef0a458fd9bcbde66de9c1393269df302..43deafb2c80a74014a4acf1d4d15a7b944a3c48d 100644
(file)
--- 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);
}