From: Vinson Lee Date: Sat, 25 Sep 2010 02:33:43 +0000 (-0700) Subject: r300g: Silence uninitialized variable warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c77b753162f284182b4162613822e78ede083fe;p=mesa.git 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 --- 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;