From: Brian Paul Date: Tue, 3 Oct 2017 19:54:31 +0000 (-0600) Subject: mesa: silence 'variable may be used uninitialized' warning in bufferobj.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fed856478c0937d3efc74d465f0e455762c6f09c;p=mesa.git mesa: silence 'variable may be used uninitialized' warning in bufferobj.c Found with MinGW optimized build. Reviewed-by: Charmaine Lee --- diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 2da21280819..0b984831043 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; } }