Subject: Re: [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-07-02 22:13:16
#6652: Boost.Thread shared_mutex.hpp:50:99: warning: dereferencing type-punned
pointer will break strict-aliasing rules [-Wstrict-aliasing]
-----------------------------------+----------------------------------------
Reporter: flavio.perri@⦠| Owner: viboes
Type: Bugs | Status: assigned
Milestone: To Be Determined | Component: thread
Version: Boost 1.49.0 | Severity: Problem
Resolution: | Keywords: thread mutex warning
-----------------------------------+----------------------------------------
Comment (by viboes):
Boost 1.50 avoids these warnings if you define
BOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN or
BOOST_THREAD_VERSION=3.
The default value for BOOST_THREAD_VERSION is 2 on 1.50, but will be 3 in
a near release, so maybe you can already switch.
I will not try to fix these warning in the legacy code. Let me know if we
can close this tickets as wontfix.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6652#comment:4> 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