From 29b97a751345cb0b0b0e10b6a7828d41f5df79dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Wed, 11 Jul 2012 17:59:25 +0000 Subject: [PATCH] Ticket #7095: warning: unrecognized __attribute__((__may_alias__)) [SVN r79424] --- include/boost/move/move.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/move/move.hpp b/include/boost/move/move.hpp index 172ef30..d6b1039 100644 --- a/include/boost/move/move.hpp +++ b/include/boost/move/move.hpp @@ -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