Mesa (master): r600g: fix warning: assignment discards qualifiers from pointer target type

Marek Olšák mareko at kemper.freedesktop.org
Sun Jun 19 19:09:44 UTC 2011


Module: Mesa
Branch: master
Commit: 8623c68aec95e0883308051068b3496a85e8b9ea
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8623c68aec95e0883308051068b3496a85e8b9ea

Author: Marek Olšák <maraeo at gmail.com>
Date:   Sun Jun 19 19:42:22 2011 +0200

r600g: fix warning: assignment discards qualifiers from pointer target type

---

 src/gallium/drivers/r600/r600_blit.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_blit.c b/src/gallium/drivers/r600/r600_blit.c
index e858ea2..6171d28 100644
--- a/src/gallium/drivers/r600/r600_blit.c
+++ b/src/gallium/drivers/r600/r600_blit.c
@@ -294,7 +294,8 @@ static void r600_resource_copy_region(struct pipe_context *ctx,
 {
 	struct r600_resource_texture *rsrc = (struct r600_resource_texture*)src;
 	struct texture_orig_info orig_info[2];
-	struct pipe_box sbox, *psbox;
+	struct pipe_box sbox;
+	const struct pipe_box *psbox;
 	boolean restore_orig[2];
 
 	/* Fallback for buffers. */




More information about the mesa-commit mailing list