Mesa (master): radeon: add casts to silence warnings

Brian Paul brianp at kemper.freedesktop.org
Mon Jan 2 10:58:58 PST 2012


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

Author: Brian Paul <brianp at vmware.com>
Date:   Mon Jan  2 11:55:39 2012 -0700

radeon: add casts to silence warnings

---

 src/mesa/drivers/dri/radeon/radeon_common.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/radeon/radeon_common.h b/src/mesa/drivers/dri/radeon/radeon_common.h
index 67925cb..24cba34 100644
--- a/src/mesa/drivers/dri/radeon/radeon_common.h
+++ b/src/mesa/drivers/dri/radeon/radeon_common.h
@@ -44,7 +44,7 @@ static inline struct radeon_renderbuffer *radeon_renderbuffer(struct gl_renderbu
 	struct radeon_renderbuffer *rrb = (struct radeon_renderbuffer *)rb;
 	radeon_print(RADEON_MEMORY, RADEON_TRACE,
 		"%s(rb %p)\n",
-		__func__, rb);
+		__func__, (void *) rb);
 	if (rrb && rrb->base.ClassID == RADEON_RB_CLASS)
 		return rrb;
 	else
@@ -55,7 +55,7 @@ static inline struct radeon_renderbuffer *radeon_get_renderbuffer(struct gl_fram
 {
 	radeon_print(RADEON_MEMORY, RADEON_TRACE,
 		"%s(fb %p, index %d)\n",
-		__func__, fb, att_index);
+		__func__, (void *) fb, att_index);
 
 	if (att_index >= 0)
 		return radeon_renderbuffer(fb->Attachment[att_index].Renderbuffer);



More information about the mesa-commit mailing list