]> git.saurik.com Git - wxWidgets.git/commitdiff
initialize all fields of WINDOWPOS struct to avoid mingw32 warnings
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 2 Oct 2007 17:34:30 +0000 (17:34 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 2 Oct 2007 17:34:30 +0000 (17:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/renderer.cpp

index 1fe0bf7374d13ef8acc78b1ad7da5838b75bbe96..b1a3c77ff67301be52bcb48d5b3a7c5fe3f22d07 100644 (file)
@@ -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;