diff options
author | Brian Paul <[email protected]> | 2018-01-25 14:37:34 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-01-26 10:44:05 -0700 |
commit | acaec6cdd9e65cd2daf4d6a6bb78a909cf9c306c (patch) | |
tree | 71da4d701e75fab0091fac62e548b2f310618e1f /src | |
parent | 8096b558a7d769b20b1545b83399d67b8a3df94a (diff) |
mesa: silence MinGW 'may be unused uninitialized' warning in get.c
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/get.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 7f2d72aa4bd..5fee9a60bc3 100644 --- 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"; |