[Boost-bugs] [Boost C++ Libraries] #7817: Many warnings during compile time

Subject: [Boost-bugs] [Boost C++ Libraries] #7817: Many warnings during compile time
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-12-20 12:40:51


#7817: Many warnings during compile time
-------------------------------+--------------------------------------------
 Reporter: olgood@… | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost 1.52.0 | Severity: Problem
 Keywords: |
-------------------------------+--------------------------------------------
 MinGW 4.7.2

 {{{
 gcc.compile.c++ bin.v2\libs\thread\build\gcc-mingw-4.7.2\release\link-
 static\threading-multi\win32\thread.o
 In file included from ./boost/thread/shared_mutex.hpp:18:0,
                  from ./boost/thread/detail/thread_group.hpp:9,
                  from ./boost/thread/thread.hpp:24,
                  from libs\thread\src\win32\thread.cpp:15:
 ./boost/thread/win32/shared_mutex.hpp: In constructor
 'boost::shared_mutex::shared_mutex()':
 ./boost/thread/win32/shared_mutex.hpp:98:33: warning: missing initializer
 for member 'boost::shared_mutex::state_data::shared_waiting' [-Wmissing
 -field-initializers]
 ./boost/thread/win32/shared_mutex.hpp:98:33: warning: missing initializer
 for member 'boost::shared_mutex::state_data::exclusive' [-Wmissing-fiel
 d-initializers]
 ./boost/thread/win32/shared_mutex.hpp:98:33: warning: missing initializer
 for member 'boost::shared_mutex::state_data::upgrade' [-Wmissing-field-
 initializers]
 ./boost/thread/win32/shared_mutex.hpp:98:33: warning: missing initializer
 for member 'boost::shared_mutex::state_data::exclusive_waiting' [-Wmiss
 ing-field-initializers]
 ./boost/thread/win32/shared_mutex.hpp:98:33: warning: missing initializer
 for member 'boost::shared_mutex::state_data::exclusive_waiting_blocked'
  [-Wmissing-field-initializers]
 libs\thread\src\win32\thread.cpp: In static member function 'static
 unsigned int boost::thread::hardware_concurrency()':
 libs\thread\src\win32\thread.cpp:390:30: warning: missing initializer for
 member '_SYSTEM_INFO::dwPageSize' [-Wmissing-field-initializers]
 libs\thread\src\win32\thread.cpp:390:30: warning: missing initializer for
 member '_SYSTEM_INFO::lpMinimumApplicationAddress' [-Wmissing-field-ini
 tializers]
 libs\thread\src\win32\thread.cpp:390:30: warning: missing initializer for
 member '_SYSTEM_INFO::lpMaximumApplicationAddress' [-Wmissing-field-ini
 tializers]
 libs\thread\src\win32\thread.cpp:390:30: warning: missing initializer for
 member '_SYSTEM_INFO::dwActiveProcessorMask' [-Wmissing-field-initializ
 ers]
 libs\thread\src\win32\thread.cpp:390:30: warning: missing initializer for
 member '_SYSTEM_INFO::dwNumberOfProcessors' [-Wmissing-field-initialize
 rs]
 libs\thread\src\win32\thread.cpp:390:30: warning: missing initializer for
 member '_SYSTEM_INFO::dwProcessorType' [-Wmissing-field-initializers]
 libs\thread\src\win32\thread.cpp:390:30: warning: missing initializer for
 member '_SYSTEM_INFO::dwAllocationGranularity' [-Wmissing-field-initial
 izers]
 libs\thread\src\win32\thread.cpp:390:30: warning: missing initializer for
 member '_SYSTEM_INFO::wProcessorLevel' [-Wmissing-field-initializers]
 libs\thread\src\win32\thread.cpp:390:30: warning: missing initializer for
 member '_SYSTEM_INFO::wProcessorRevision' [-Wmissing-field-initializers
 ]
 libs\thread\src\win32\thread.cpp: In function 'LARGE_INTEGER
 boost::this_thread::{anonymous}::get_due_time(const
 boost::detail::timeout&)':
 libs\thread\src\win32\thread.cpp:412:44: warning: missing initializer for
 member '_LARGE_INTEGER::<anonymous struct>::HighPart' [-Wmissing-field-
 initializers]
 libs\thread\src\win32\thread.cpp:426:53: warning: missing initializer for
 member '_SYSTEMTIME::wMonth' [-Wmissing-field-initializers]
 libs\thread\src\win32\thread.cpp:426:53: warning: missing initializer for
 member '_SYSTEMTIME::wDayOfWeek' [-Wmissing-field-initializers]
 libs\thread\src\win32\thread.cpp:426:53: warning: missing initializer for
 member '_SYSTEMTIME::wDay' [-Wmissing-field-initializers]
 libs\thread\src\win32\thread.cpp:426:53: warning: missing initializer for
 member '_SYSTEMTIME::wHour' [-Wmissing-field-initializers]
 libs\thread\src\win32\thread.cpp:426:53: warning: missing initializer for
 member '_SYSTEMTIME::wMinute' [-Wmissing-field-initializers]
 libs\thread\src\win32\thread.cpp:426:53: warning: missing initializer for
 member '_SYSTEMTIME::wSecond' [-Wmissing-field-initializers]
 libs\thread\src\win32\thread.cpp:426:53: warning: missing initializer for
 member '_SYSTEMTIME::wMilliseconds' [-Wmissing-field-initializers]
 In file included from ./boost/thread/shared_mutex.hpp:18:0,
                  from ./boost/thread/detail/thread_group.hpp:9,
                  from ./boost/thread/thread.hpp:24,
                  from libs\thread\src\win32\thread.cpp:15:
 ./boost/thread/win32/shared_mutex.hpp: In instantiation of 'T
 boost::shared_mutex::interlocked_compare_exchange(T*, T, T) [with T =
 boost::shared
 _mutex::state_data]':
 ./boost/thread/win32/shared_mutex.hpp:124:103: required from here
 ./boost/thread/win32/shared_mutex.hpp:52:99: warning: dereferencing type-
 punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
 ./boost/thread/win32/shared_mutex.hpp:52:99: warning: dereferencing type-
 punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
 ./boost/thread/win32/shared_mutex.hpp:53:52: warning: dereferencing type-
 punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
 ./boost/thread/win32/shared_mutex.hpp:53:52: warning: dereferencing type-
 punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7817>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC