glsl2: silence compiler warnings in printf() calls
authorBrian Paul <brianp@vmware.com>
Mon, 20 Sep 2010 14:22:51 +0000 (08:22 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 20 Sep 2010 14:22:54 +0000 (08:22 -0600)
Such as: "ir_validate.cpp:143: warning: format ‘%p’ expects type ‘void*’,
but argument 2 has type ‘ir_variable*’"

src/glsl/ir_validate.cpp

index 58ab8aa58f86492f780d0ae5de39b03a4480c09a..912d1c0d7091c38ef495857d266ca71af1d96a26 100644 (file)
@@ -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();
       }
    }