Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r79424 - trunk/boost/move
From: igaztanaga_at_[hidden]
Date: 2012-07-11 13:59:27


Author: igaztanaga
Date: 2012-07-11 13:59:25 EDT (Wed, 11 Jul 2012)
New Revision: 79424
URL: http://svn.boost.org/trac/boost/changeset/79424

Log:
Ticket #7095: warning: unrecognized __attribute__((__may_alias__))
Text files modified:
   trunk/boost/move/move.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/move/move.hpp
==============================================================================
--- trunk/boost/move/move.hpp (original)
+++ trunk/boost/move/move.hpp 2012-07-11 13:59:25 EDT (Wed, 11 Jul 2012)
@@ -217,7 +217,7 @@
 #if defined(BOOST_NO_RVALUE_REFERENCES) && !defined(BOOST_MOVE_DOXYGEN_INVOKED)
 
    //Move emulation rv breaks standard aliasing rules so add workarounds for some compilers
- #ifdef __GNUC__
+ #if defined(__GNUC__) && (__GNUC__ >= 4)
       #define BOOST_MOVE_ATTRIBUTE_MAY_ALIAS __attribute__((__may_alias__))
    #else
       #define BOOST_MOVE_ATTRIBUTE_MAY_ALIAS


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk