From e2369e133c052f85ca8ceea6bb8a4d8457809a42 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 2 Mar 2019 11:26:44 -0700 Subject: [PATCH] st/wgl: init a variable to silence MinGW warning MinGW release build says 'value' may be used before being initialized. Reviewed-by: Neha Bhende --- src/gallium/state_trackers/wgl/stw_ext_pixelformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.30.2