From 5c77b753162f284182b4162613822e78ede083fe Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Fri, 24 Sep 2010 19:33:43 -0700 Subject: [PATCH] r300g: Silence uninitialized variable warning. Silence this GCC warning. r300_state_derived.c: In function 'r300_update_derived_state': r300_state_derived.c:578: warning: 'r' may be used uninitialized in this function r300_state_derived.c:578: note: 'r' was declared here --- src/gallium/drivers/r300/r300_state_derived.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/r300/r300_state_derived.c b/src/gallium/drivers/r300/r300_state_derived.c index 566a828871d..0c3fa200c82 100644 --- a/src/gallium/drivers/r300/r300_state_derived.c +++ b/src/gallium/drivers/r300/r300_state_derived.c @@ -630,6 +630,7 @@ static uint32_t r300_get_border_color(enum pipe_format format, ((float_to_ubyte(border_swizzled[2]) & 0xf8) << 8); } else { assert(0); + r = 0; } break; -- 2.30.2