diff options
author | Vinson Lee <[email protected]> | 2011-11-30 15:32:16 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2011-12-01 11:41:14 -0800 |
commit | de93347d482a96f88c898622c9620f03e677e386 (patch) | |
tree | 16a170e2d1cc48b8f6dc012c5bdbacd15755ef37 /src | |
parent | 5df2d18f7015d00bc34454551fb60d55efe101a2 (diff) |
u_vbuf: Silence uninitialized variable warnings.
Fixes these GCC warnings.
u_vbuf.c: In function ‘u_vbuf_draw_begin’:
u_vbuf.c:839:20: warning: ‘max_index’ may be used uninitialized in this function [-Wuninitialized]
u_vbuf.c:838:20: warning: ‘min_index’ may be used uninitialized in this function [-Wuninitialized]
Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/util/u_vbuf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_vbuf.c b/src/gallium/auxiliary/util/u_vbuf.c index f6da9120343..5b0e26e30db 100644 --- a/src/gallium/auxiliary/util/u_vbuf.c +++ b/src/gallium/auxiliary/util/u_vbuf.c @@ -808,6 +808,8 @@ static void u_vbuf_get_minmax_index(struct pipe_context *pipe, } default: assert(0); + *out_min_index = 0; + *out_max_index = 0; } if (transfer) { |