diff options
author | Vinson Lee <[email protected]> | 2010-09-24 19:33:43 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-09-24 19:33:43 -0700 |
commit | 5c77b753162f284182b4162613822e78ede083fe (patch) | |
tree | 1327c8e91b93746741f4be3e571d95a6128ffa8b | |
parent | 1acadebd6270d3604b026842b8a21360968618a0 (diff) |
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
-rw-r--r-- | src/gallium/drivers/r300/r300_state_derived.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |