From: Vadim Zeitlin Date: Tue, 2 Oct 2007 17:34:30 +0000 (+0000) Subject: initialize all fields of WINDOWPOS struct to avoid mingw32 warnings X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/11fa6e636b37ca8db5022dd9ad9502c37eac50fb initialize all fields of WINDOWPOS struct to avoid mingw32 warnings git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/renderer.cpp b/src/msw/renderer.cpp index 1fe0bf7374..b1a3c77ff6 100644 --- a/src/msw/renderer.cpp +++ b/src/msw/renderer.cpp @@ -311,7 +311,7 @@ int wxRendererMSW::GetHeaderButtonHeight(wxWindow * WXUNUSED(win)) // initialize the struct filled with the values by Header_Layout() RECT parentRect = { 0, 0, 100, 100 }; - WINDOWPOS wp = { 0 }; + WINDOWPOS wp = { 0, 0, 0, 0, 0, 0, 0 }; HDLAYOUT hdl = { &parentRect, &wp }; return Header_Layout(hwndHeader, &hdl) ? wp.cy : DEFAULT_HEIGHT;