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
This commit is contained in:
Vadim Zeitlin
2011-06-29 17:50:27 +00:00
parent 408ee837a8
commit 917b008579
2 changed files with 2 additions and 2 deletions

View File

@@ -347,7 +347,7 @@ LRESULT CALLBACK wxSocket_Internal_WinProc(HWND hWnd,
// only then). Ignore such dummy notifications. // only then). Ignore such dummy notifications.
{ {
fd_set fds; fd_set fds;
timeval tv = { 0 }; timeval tv = { 0, 0 };
wxFD_ZERO(&fds); wxFD_ZERO(&fds);
wxFD_SET(socket->m_fd, &fds); wxFD_SET(socket->m_fd, &fds);

View File

@@ -374,7 +374,7 @@ int wxStatusBar::MSWGetBorderWidth() const
/* static */ /* static */
const wxStatusBar::MSWMetrics& wxStatusBar::MSWGetMetrics() const wxStatusBar::MSWMetrics& wxStatusBar::MSWGetMetrics()
{ {
static MSWMetrics s_metrics = { 0 }; static MSWMetrics s_metrics = { 0, 0 };
if ( !s_metrics.textMargin ) if ( !s_metrics.textMargin )
{ {
// Grip size should be self explanatory (the only problem with it is // Grip size should be self explanatory (the only problem with it is