diff options
author | Vinson Lee <vlee@freedesktop.org> | 2014-01-10 18:00:06 -0800 |
---|---|---|
committer | Vinson Lee <vlee@freedesktop.org> | 2014-01-13 18:13:14 -0800 |
commit | 40fd0a8a386c3b29271c46ada9f43557da4e2c88 (patch) | |
tree | e4a555694ee89077fb711c6c7953b91a9afe2db3 /tests/fbo | |
parent | 2e26edbe802a4d8d23759db5682a1db5c22fb191 (diff) |
fbo-rg: Silence uninitialized variable warning.
Fix GCC maybe-uninitialized warning.
fbo-rg.c:485:34: warning: 'internal_format' may be used uninitialized in this function [-Wmaybe-uninitialized]
pass = render_and_check_textures(internal_format);
^
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'tests/fbo')
-rw-r--r-- | tests/fbo/fbo-rg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fbo/fbo-rg.c b/tests/fbo/fbo-rg.c index fd200642e..ca5042ac3 100644 --- a/tests/fbo/fbo-rg.c +++ b/tests/fbo/fbo-rg.c @@ -409,7 +409,7 @@ usage(const char *name) void piglit_init(int argc, char **argv) { - GLenum internal_format; + GLenum internal_format = GL_NONE; const char *fmt; if ((argc == 1) || (strncmp(argv[1], "GL_R", 4) != 0)) |