Opened 10 years ago
Last modified 10 years ago
#7765 closed Bugs
Warnings from shared_mutex.hpp when including thread.hpp — at Initial Version
Reported by: | Owned by: | ||
---|---|---|---|
Milestone: | To Be Determined | Component: | thread |
Version: | Boost 1.52.0 | Severity: | Problem |
Keywords: | Cc: |
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 !