projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
980fe46
)
mesa: silence 'variable may be used uninitialized' warning in bufferobj.c
author
Brian Paul
<brianp@vmware.com>
Tue, 3 Oct 2017 19:54:31 +0000
(13:54 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 3 Oct 2017 20:32:59 +0000
(14:32 -0600)
Found with MinGW optimized build.
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/mesa/main/bufferobj.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/bufferobj.c
b/src/mesa/main/bufferobj.c
index 2da21280819aa83cc9038a249da28d47f2588ae1..0b9848310439fd7544f3615aa05b96b3d3921281 100644
(file)
--- 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;
}
}