diff options
author | Brian Paul <[email protected]> | 2010-09-20 08:22:51 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-09-20 08:22:54 -0600 |
commit | 17391241599137b9729e9ee6c5487d05e04d8aee (patch) | |
tree | 69fcea9e8d2b5d7317356c643113cc321f3a53ab /src/glsl | |
parent | 55228878420733e77a09c67d5175e90e4b2e7245 (diff) |
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*’"
Diffstat (limited to 'src/glsl')
-rw-r--r-- | 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 58ab8aa58f8..912d1c0d709 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(); } } |