Re: [Boost-bugs] [Boost C++ Libraries] #12941: MinGW- Ignore return value from BOOST_INTERLOCKED_EXCHANGE

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12941: MinGW- Ignore return value from BOOST_INTERLOCKED_EXCHANGE
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-04-30 17:53:32


#12941: MinGW- Ignore return value from BOOST_INTERLOCKED_EXCHANGE
-------------------------------+----------------------
  Reporter: mattyclarkson@… | Owner: viboes
      Type: Support Requests | Status: assigned
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.63.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+----------------------

Comment (by mattyclarkson@…):

 It was from 1.63 but the code has had a cast added to the pointer. The
 patch is now:

 {{{
 ---
  boost/thread/win32/interlocked_read.hpp | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
 diff --git a/boost/thread/win32/interlocked_read.hpp
 b/boost/thread/win32/interlocked_read.hpp
 index 2ad3fe9..0a16407 100644
 --- a/boost/thread/win32/interlocked_read.hpp
 +++ b/boost/thread/win32/interlocked_read.hpp
 @@ -61,11 +61,11 @@ namespace boost
          }
          inline void interlocked_write_release(long volatile* x,long
 value) BOOST_NOEXCEPT
          {
 - BOOST_INTERLOCKED_EXCHANGE((long*)x,value);
 + (void)BOOST_INTERLOCKED_EXCHANGE((long*)x,value);
          }
          inline void interlocked_write_release(void* volatile* x,void*
 value) BOOST_NOEXCEPT
          {
 - BOOST_INTERLOCKED_EXCHANGE_POINTER((void**)x,value);
 + (void)BOOST_INTERLOCKED_EXCHANGE_POINTER((void**)x,value);
          }
      }
  }
 --
 1.7.10.4

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12941#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-04-30 17:58:04 UTC