summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2019-03-02 11:26:44 -0700
committerBrian Paul <[email protected]>2019-03-04 11:48:48 -0700
commite2369e133c052f85ca8ceea6bb8a4d8457809a42 (patch)
tree1f8d6b3fe54d3793d55d5244c1233c560aadc206
parent66ba12973bcbe35f7c41c32270f92073e946b1d5 (diff)
st/wgl: init a variable to silence MinGW warning
MinGW release build says 'value' may be used before being initialized. Reviewed-by: Neha Bhende <[email protected]>
-rw-r--r--src/gallium/state_trackers/wgl/stw_ext_pixelformat.c2
1 files changed, 1 insertions, 1 deletions
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))