Subject: [Boost-bugs] [Boost C++ Libraries] #7765: Warnings from shared_mutex.hpp when including thread.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-12-04 20:29:14
#7765: Warnings from shared_mutex.hpp when including thread.hpp
--------------------------------------+-------------------------------------
Reporter: barnabe.faliu@⦠| Type: Bugs
Status: new | Milestone: Boost 1.52.0
Component: None | Version: Boost 1.52.0
Severity: Problem | Keywords:
--------------------------------------+-------------------------------------
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> 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