r300g: silence uninitialized var warning
authorBrian Paul <brianp@vmware.com>
Mon, 16 Jul 2012 20:16:08 +0000 (14:16 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 16 Jul 2012 22:03:31 +0000 (16:03 -0600)
src/gallium/drivers/r300/compiler/radeon_inline_literals.c

index 568a3d60e14d7cc7107e0125e5e715f405e5883d..54f6d6770268d4e5522abe6d5dcf5a9d9ea38633 100644 (file)
@@ -71,7 +71,7 @@ void rc_inline_literals(struct radeon_compiler *c, void *user)
                unsigned src_idx;
                struct rc_constant * constant;
                float float_value;
-               unsigned char r300_float;
+               unsigned char r300_float = 0;
                int ret;
 
                /* XXX: Handle presub */