Mesa (7.10): glsl: silence warning in printf() with a cast

Brian Paul brianp at kemper.freedesktop.org
Tue Apr 5 08:12:49 PDT 2011


Module: Mesa
Branch: 7.10
Commit: 7c9d66c60f8c0bfe5b2628752e1f6dd117c74820
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7c9d66c60f8c0bfe5b2628752e1f6dd117c74820

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Mar 10 09:29:00 2011 -0700

glsl: silence warning in printf() with a cast
(cherry picked from commit 0eab3a8a976ea282063710d5aa7d1709abc182c5)

---

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

diff --git a/src/glsl/ir_validate.cpp b/src/glsl/ir_validate.cpp
index b2ae08f..0fc3baf 100644
--- a/src/glsl/ir_validate.cpp
+++ b/src/glsl/ir_validate.cpp
@@ -214,7 +214,7 @@ ir_validate::visit_enter(ir_function_signature *ir)
 
    if (ir->return_type == NULL) {
       printf("Function signature %p for function %s has NULL return type.\n",
-	     ir, ir->function_name());
+	     (void *) ir, ir->function_name());
       abort();
    }
 



More information about the mesa-commit mailing list