Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7765: Warnings from shared_mutex.hpp when including thread.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-01-03 16:10:40
#7765: Warnings from shared_mutex.hpp when including thread.hpp
---------------------------------------+------------------------------------
Reporter: barnabe.faliu@⦠| Owner: viboes
Type: Bugs | Status: assigned
Milestone: To Be Determined | Component: thread
Version: Boost 1.52.0 | Severity: Problem
Resolution: | Keywords:
---------------------------------------+------------------------------------
Changes (by viboes):
* owner: => viboes
* status: new => assigned
* component: None => thread
* milestone: Boost 1.52.0 => To Be Determined
Old description:
> Just by including <boost/thread/thread.hpp>, when I compile my program I
> get thoose warnings:
>
> '''C:\Boost\boost_1_52_0/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]':
> C:\Boost\boost_1_52_0/boost/thread/win32/shared_mutex.hpp:124:103:
> required from here
> C:\Boost\boost_1_52_0/boost/thread/win32/shared_mutex.hpp:52:99: warning:
> dereferencing type-punned pointer will break strict-aliasing rules
> C:\Boost\boost_1_52_0/boost/thread/win32/shared_mutex.hpp:52:99: warning:
> dereferencing type-punned pointer will break strict-aliasing rules
> C:\Boost\boost_1_52_0/boost/thread/win32/shared_mutex.hpp:53:52: warning:
> dereferencing type-punned pointer will break strict-aliasing rules
> C:\Boost\boost_1_52_0/boost/thread/win32/shared_mutex.hpp:53:52: warning:
> dereferencing type-punned pointer will break strict-aliasing rules'''
>
> Help please !
New description:
Just by including <boost/thread/thread.hpp>, when I compile my program I
get thoose warnings:
{{{
'''C:\Boost\boost_1_52_0/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]':
C:\Boost\boost_1_52_0/boost/thread/win32/shared_mutex.hpp:124:103:
required from here
C:\Boost\boost_1_52_0/boost/thread/win32/shared_mutex.hpp:52:99: warning:
dereferencing type-punned pointer will break strict-aliasing rules
C:\Boost\boost_1_52_0/boost/thread/win32/shared_mutex.hpp:52:99: warning:
dereferencing type-punned pointer will break strict-aliasing rules
C:\Boost\boost_1_52_0/boost/thread/win32/shared_mutex.hpp:53:52: warning:
dereferencing type-punned pointer will break strict-aliasing rules
C:\Boost\boost_1_52_0/boost/thread/win32/shared_mutex.hpp:53:52: warning:
dereferencing type-punned pointer will break strict-aliasing rules'''
}}}
Help please !
-- -- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7765#comment:3> 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