diff options
author | Brian Paul <[email protected]> | 2019-03-02 11:26:44 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2019-03-04 11:48:48 -0700 |
commit | e2369e133c052f85ca8ceea6bb8a4d8457809a42 (patch) | |
tree | 1f8d6b3fe54d3793d55d5244c1233c560aadc206 /src | |
parent | 66ba12973bcbe35f7c41c32270f92073e946b1d5 (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]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/state_trackers/wgl/stw_ext_pixelformat.c | 2 |
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)) |