diff options
author | Vinson Lee <[email protected]> | 2010-11-03 18:13:14 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-11-03 18:20:22 -0700 |
commit | d3fcadf8400360f4db45a4deb45b3b260e880b49 (patch) | |
tree | 4201b729f713ecdbf7fb7882ee22eb1548e0d9e4 /src/mesa/drivers/dri | |
parent | 3ded3e98ffc36820c8ab318d736eab99bb16f26b (diff) |
dri/nouveau: Silence uninitialized variable warning.
Fixes this GCC warning.
nouveau_vbo_t.c: In function 'nv10_vbo_render_prims':
nouveau_render_t.c:161: warning: 'max_out' may be used uninitialized in this function
nouveau_render_t.c:161: note: 'max_out' was declared here
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nouveau_render_t.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_render_t.c b/src/mesa/drivers/dri/nouveau/nouveau_render_t.c index 78379482832..43164ec34f8 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_render_t.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_render_t.c @@ -173,6 +173,11 @@ get_max_vertices(struct gl_context *ctx, const struct _mesa_index_buffer *ib, case GL_UNSIGNED_BYTE: max_out = MAX_OUT_I16; break; + + default: + assert(0); + max_out = 0; + break; } } else { max_out = MAX_OUT_L; |