Mesa (master): u_tile: fix warnings about incompatible casts.

Dave Airlie airlied at kemper.freedesktop.org
Wed Apr 8 00:31:54 UTC 2015


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

Author: Dave Airlie <airlied at redhat.com>
Date:   Wed Apr  8 10:31:14 2015 +1000

u_tile: fix warnings about incompatible casts.

Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 src/gallium/auxiliary/util/u_tile.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_tile.c b/src/gallium/auxiliary/util/u_tile.c
index f5edb8b..8e19920 100644
--- a/src/gallium/auxiliary/util/u_tile.c
+++ b/src/gallium/auxiliary/util/u_tile.c
@@ -214,7 +214,7 @@ s8x24_get_tile_rgba(const unsigned *src,
    unsigned i, j;
 
    for (i = 0; i < h; i++) {
-      uint32_t *pRow = p;
+      uint32_t *pRow = (uint32_t *)p;
 
       for (j = 0; j < w; j++, pRow += 4) {
          pRow[0] =
@@ -241,7 +241,7 @@ x24s8_get_tile_rgba(const unsigned *src,
    unsigned i, j;
 
    for (i = 0; i < h; i++) {
-      uint32_t *pRow = p;
+      uint32_t *pRow = (uint32_t *)p;
       for (j = 0; j < w; j++, pRow += 4) {
          pRow[0] =
          pRow[1] =
@@ -265,7 +265,7 @@ s8_get_tile_rgba(const unsigned char *src,
    unsigned i, j;
 
    for (i = 0; i < h; i++) {
-      uint32_t *pRow = p;
+      uint32_t *pRow = (uint32_t *)p;
       for (j = 0; j < w; j++, pRow += 4) {
          pRow[0] =
          pRow[1] =




More information about the mesa-commit mailing list