diff options
author | Vinson Lee <vlee@freedesktop.org> | 2014-01-10 18:26:23 -0800 |
---|---|---|
committer | Vinson Lee <vlee@freedesktop.org> | 2014-01-13 18:13:14 -0800 |
commit | a06370729028e79836ab721fa4eb583947132e44 (patch) | |
tree | 1aa715644b8f2f49a904da17d1eb75bd9cc36765 /tests/general | |
parent | 206d5cc3f744ca103d839f0221c4a20259fc0df2 (diff) |
primitive-restart: Fix GCC warnings.
This patch fixes these GCC warnings.
primitive-restart.c: In function 'read_index_value':
primitive-restart.c:253:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
primitive-restart.c: In function 'test_draw_by_index':
primitive-restart.c:445:18: warning: 'restart_index' may be used uninitialized in this function [-Wmaybe-uninitialized]
enable_restart(restart_index);
^
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'tests/general')
-rw-r--r-- | tests/general/primitive-restart.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/general/primitive-restart.c b/tests/general/primitive-restart.c index 5cff16332..0674c1145 100644 --- a/tests/general/primitive-restart.c +++ b/tests/general/primitive-restart.c @@ -249,6 +249,7 @@ static GLuint read_index_value(const GLvoid *indices, GLenum type, GLuint index) return ((GLuint*)indices)[index]; default: assert(0); + return 0; } } @@ -337,6 +338,7 @@ test_draw_by_index(VBO_CFG vbo_cfg, GLboolean one_by_one, GLenum primMode, GLenu break; default: assert(0); + restart_index = 0; } x = 0.0; |