From: Brian Paul Date: Thu, 25 Jan 2018 21:37:34 +0000 (-0700) Subject: mesa: silence MinGW 'may be unused uninitialized' warning in get.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=acaec6cdd9e65cd2daf4d6a6bb78a909cf9c306c;p=mesa.git 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 --- 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";