Subject: [Boost-bugs] [Boost C++ Libraries] #6652: Boost.Thread shared_mutex.hpp:50:99: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-03-05 10:39:15
#6652: Boost.Thread shared_mutex.hpp:50:99: warning: dereferencing type-punned
pointer will break strict-aliasing rules [-Wstrict-aliasing]
----------------------------------+-----------------------------------------
Reporter: flavio.perri@⦠| Owner: anthonyw
Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
Version: Boost 1.49.0 | Severity: Problem
Keywords: thread mutex warning |
----------------------------------+-----------------------------------------
I'm using the Boost.Thread library since 1.47.
When including <boost/thread/thread.hpp> my compiler (mingw 4.6) always
writes a number of annoying warnings like this:
../boost/thread/win32/shared_mutex.hpp:50:99: warning: dereferencing type-
punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
another warning is: /boost/thread/win32/shared_mutex.hpp:95:33: warning:
missing initializer for member
'boost::shared_mutex::state_data::shared_waiting' [-Wmissing-field-
initializers]
Same warnings in 1.47, 1.48 and 1.49 using the same compiler.
The gcc options used: -pedantic -ansi -std=gnu++0x -Wextra -fpermissive
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6652> 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:09 UTC