mesa: silence warnings
authorBrian Paul <brian.paul@tungstengraphics.com>
Sat, 1 Nov 2008 22:04:45 +0000 (16:04 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sat, 1 Nov 2008 22:04:58 +0000 (16:04 -0600)
src/mesa/shader/slang/slang_print.c

index 0840a0e2f6db7fdc8c085f9c31a3b2d28b3bd38e..b88cefc283b9e40d6839d1a8ba209f7e06602134 100644 (file)
@@ -379,7 +379,7 @@ slang_print_tree(const slang_operation *op, int indent)
    case SLANG_OPER_WHILE:
       assert(op->num_children == 2);
       spaces(indent);
-      printf("WHILE LOOP: locals = %p\n", op->locals);
+      printf("WHILE LOOP: locals = %p\n", (void *) op->locals);
       indent += 3;
       spaces(indent);
       printf("WHILE cond:\n");
@@ -394,7 +394,7 @@ slang_print_tree(const slang_operation *op, int indent)
 
    case SLANG_OPER_DO:
       spaces(indent);
-      printf("DO LOOP: locals = %p\n", op->locals);
+      printf("DO LOOP: locals = %p\n", (void *) op->locals);
       indent += 3;
       spaces(indent);
       printf("DO body:\n");
@@ -409,7 +409,7 @@ slang_print_tree(const slang_operation *op, int indent)
 
    case SLANG_OPER_FOR:
       spaces(indent);
-      printf("FOR LOOP: locals = %p\n", op->locals);
+      printf("FOR LOOP: locals = %p\n", (void *) op->locals);
       indent += 3;
       spaces(indent);
       printf("FOR init:\n");