[Mesa-dev] [PATCH 1/4] mesa: silence 'variable may be used uninitialized' warning in bufferobj.c
Brian Paul
brianp at vmware.com
Tue Oct 3 20:04:13 UTC 2017
Found with MinGW optimized build.
---
src/mesa/main/bufferobj.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
index 2da2128..0b98483 100644
--- a/src/mesa/main/bufferobj.c
+++ b/src/mesa/main/bufferobj.c
@@ -3287,6 +3287,7 @@ get_map_buffer_access_flags(struct gl_context *ctx, GLenum access,
*flags = GL_MAP_READ_BIT | GL_MAP_WRITE_BIT;
return _mesa_is_desktop_gl(ctx);
default:
+ *flags = 0;
return false;
}
}
--
1.9.1
More information about the mesa-dev
mailing list