[Mesa-dev] [PATCH 3/5] mesa: initialize "is_layered" variable to silence warning

Brian Paul brianp at vmware.com
Wed Jan 22 18:11:20 PST 2014


---
 src/mesa/main/fbobject.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
index dc7184a..943f40b 100644
--- a/src/mesa/main/fbobject.c
+++ b/src/mesa/main/fbobject.c
@@ -880,7 +880,7 @@ _mesa_test_framebuffer_completeness(struct gl_context *ctx,
    /* Covers max_layer_count, is_layered, and layer_tex_target */
    bool layer_info_valid = false;
    GLuint max_layer_count = 0, att_layer_count;
-   bool is_layered;
+   bool is_layered = false;
    GLenum layer_tex_target = 0;
 
    assert(_mesa_is_user_fbo(fb));
-- 
1.7.10.4



More information about the mesa-dev mailing list