From: Brian Paul Date: Sat, 2 Mar 2019 18:26:44 +0000 (-0700) Subject: st/wgl: init a variable to silence MinGW warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e2369e133c052f85ca8ceea6bb8a4d8457809a42;p=mesa.git st/wgl: init a variable to silence MinGW warning MinGW release build says 'value' may be used before being initialized. Reviewed-by: Neha Bhende --- diff --git a/src/gallium/state_trackers/wgl/stw_ext_pixelformat.c b/src/gallium/state_trackers/wgl/stw_ext_pixelformat.c index 6281d5d241d..7abbb80d12d 100644 --- a/src/gallium/state_trackers/wgl/stw_ext_pixelformat.c +++ b/src/gallium/state_trackers/wgl/stw_ext_pixelformat.c @@ -487,7 +487,7 @@ wglGetPixelFormatAttribfvARB(HDC hdc, int iPixelFormat, int iLayerPlane, (void) hdc; for (i = 0; i < nAttributes; i++) { - int value; + int value = 0; if (!stw_query_attrib(iPixelFormat, iLayerPlane, piAttributes[i], &value))