From 917b00857982f2ca7247a9785c11a6a1d7e01943 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 29 Jun 2011 17:50:27 +0000 Subject: [PATCH] Fix two harmless gcc warnings about missing initializers. Add values to make g++ -Wmissing-field-initializers warnings (implicitly enabled by -Wextra) go away. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/sockmsw.cpp | 2 +- src/msw/statusbar.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msw/sockmsw.cpp b/src/msw/sockmsw.cpp index 7ea56a4ea1..d531813ca6 100644 --- a/src/msw/sockmsw.cpp +++ b/src/msw/sockmsw.cpp @@ -347,7 +347,7 @@ LRESULT CALLBACK wxSocket_Internal_WinProc(HWND hWnd, // only then). Ignore such dummy notifications. { fd_set fds; - timeval tv = { 0 }; + timeval tv = { 0, 0 }; wxFD_ZERO(&fds); wxFD_SET(socket->m_fd, &fds); diff --git a/src/msw/statusbar.cpp b/src/msw/statusbar.cpp index e694abf247..a63dcc4fb6 100644 --- a/src/msw/statusbar.cpp +++ b/src/msw/statusbar.cpp @@ -374,7 +374,7 @@ int wxStatusBar::MSWGetBorderWidth() const /* static */ const wxStatusBar::MSWMetrics& wxStatusBar::MSWGetMetrics() { - static MSWMetrics s_metrics = { 0 }; + static MSWMetrics s_metrics = { 0, 0 }; if ( !s_metrics.textMargin ) { // Grip size should be self explanatory (the only problem with it is