projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8096b55
)
mesa: silence MinGW 'may be unused uninitialized' warning in get.c
author
Brian Paul
<brianp@vmware.com>
Thu, 25 Jan 2018 21:37:34 +0000
(14:37 -0700)
committer
Brian Paul
<brianp@vmware.com>
Fri, 26 Jan 2018 17:44:05 +0000
(10:44 -0700)
The warning happens on line 2114 for the memcpy(data, p, size) call.
I'm not sure why that generates the warning but not the earlier use
of p in the code.
Reviewed-by: Neha Bhende <bhenden@vmware.com>
src/mesa/main/get.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/get.c
b/src/mesa/main/get.c
index 7f2d72aa4bd276ed3236781ed9c9a50006cc78c0..5fee9a60bc323b739d2b7aac76344a7e3d4ccba9 100644
(file)
--- a/
src/mesa/main/get.c
+++ b/
src/mesa/main/get.c
@@
-2051,7
+2051,7
@@
_mesa_GetUnsignedBytevEXT(GLenum pname, GLubyte *data)
const struct value_desc *d;
union value v;
int shift;
- void *p;
+ void *p
= NULL
;
GLsizei size;
const char *func = "glGetUnsignedBytevEXT";