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

Author: Brian Paul <bri...@vmware.com>
Date:   Mon Sep 20 08:22:51 2010 -0600

glsl2: silence compiler warnings in printf() calls

Such as: "ir_validate.cpp:143: warning: format ‘%p’ expects type ‘void*’,
but argument 2 has type ‘ir_variable*’"

---

 src/glsl/ir_validate.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/glsl/ir_validate.cpp b/src/glsl/ir_validate.cpp
index 58ab8aa..912d1c0 100644
--- a/src/glsl/ir_validate.cpp
+++ b/src/glsl/ir_validate.cpp
@@ -124,7 +124,8 @@ ir_validate::visit_leave(ir_loop *ir)
                "    from:      %p\n"
                "    to:        %p\n"
                "    increment: %p\n",
-               ir->counter, ir->from, ir->to, ir->increment);
+               (void *) ir->counter, (void *) ir->from, (void *) ir->to,
+                (void *) ir->increment);
         abort();
       }
 
@@ -139,7 +140,8 @@ ir_validate::visit_leave(ir_loop *ir)
                "    from:      %p\n"
                "    to:        %p\n"
                "    increment: %p\n",
-               ir->counter, ir->from, ir->to, ir->increment);
+               (void *) ir->counter, (void *) ir->from, (void *) ir->to,
+                (void *) ir->increment);
         abort();
       }
    }

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to