Reviewed-by: Neha Bhende <[email protected]>

Regards,

Neha

________________________________
From: Brian Paul <[email protected]>
Sent: Saturday, March 2, 2019 10:28 AM
To: [email protected]
Cc: Neha Bhende
Subject: [PATCH] st/wgl: init a variable to silence MinGW warning

MinGW release build says 'value' may be used before being initialized.
---
 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 6281d5d..7abbb80 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))
--
1.8.5.6

_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to