From ca3d7dab0b47d480ceee21a2d8a0f46752ceff8b Mon Sep 17 00:00:00 2001 From: "Vicente J. Botet Escriba" Date: Sun, 3 Mar 2013 09:53:25 +0000 Subject: [PATCH] Thread: remove warning [SVN r83260] --- src/win32/thread.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/win32/thread.cpp b/src/win32/thread.cpp index 7aa8afce..28dd8d41 100644 --- a/src/win32/thread.cpp +++ b/src/win32/thread.cpp @@ -402,7 +402,8 @@ namespace boost unsigned thread::hardware_concurrency() BOOST_NOEXCEPT { - SYSTEM_INFO info={{0}}; + //SYSTEM_INFO info={{0}}; + SYSTEM_INFO info; GetSystemInfo(&info); return info.dwNumberOfProcessors; } @@ -425,7 +426,7 @@ namespace boost { LARGE_INTEGER get_due_time(detail::timeout const& target_time) { - LARGE_INTEGER due_time={{0}}; + LARGE_INTEGER due_time={{0,0}}; if(target_time.relative) { unsigned long const elapsed_milliseconds=GetTickCount()-target_time.start; @@ -439,7 +440,7 @@ namespace boost } else { - SYSTEMTIME target_system_time={0}; + SYSTEMTIME target_system_time={0,0,0,0,0,0,0,0}; target_system_time.wYear=target_time.abs_time.date().year(); target_system_time.wMonth=target_time.abs_time.date().month(); target_system_time.wDay=target_time.abs_time.date().day(); @@ -748,4 +749,3 @@ namespace boost } } -