r300: Silence uninitialized variable warning.
authorVinson Lee <vlee@vmware.com>
Wed, 13 Oct 2010 05:02:27 +0000 (22:02 -0700)
committerVinson Lee <vlee@vmware.com>
Wed, 13 Oct 2010 05:02:27 +0000 (22:02 -0700)
Fixes this GCC warning.
r300_state.c: In function 'r300InvalidateState':
r300_state.c:2247: warning: 'hw_format' may be used uninitialized in this function
r300_state.c:2247: note: 'hw_format' was declared here

src/mesa/drivers/dri/r300/r300_state.c

index 0113eecaa3a9410718237c9de95e4cfeefcbd968..bacb8f5e3a33075ee09eeb960013050572338fd1 100644 (file)
@@ -2292,6 +2292,7 @@ static void r300SetupUsOutputFormat(GLcontext *ctx)
                        break;
                default:
                        assert(!"Unsupported format");
+                       hw_format = 0;
                        break;
        }