mirror of
https://github.com/boostorg/mpl.git
synced 2025-08-04 15:24:29 +02:00
Merge GCC warnings fix from RC_1_34_0
[SVN r35998]
This commit is contained in:
@@ -47,7 +47,11 @@
|
|||||||
# define BOOST_MPL_CFG_ASSERT_BROKEN_POINTER_TO_POINTER_TO_MEMBER
|
# define BOOST_MPL_CFG_ASSERT_BROKEN_POINTER_TO_POINTER_TO_MEMBER
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if BOOST_WORKAROUND(__BORLANDC__, < 0x600)
|
// agurt, 10/nov/06: use enums for Borland (which cannot cope with static constants)
|
||||||
|
// and GCC (which issues "unused variable" warnings when static constants are used
|
||||||
|
// at a function scope)
|
||||||
|
#if BOOST_WORKAROUND(__BORLANDC__, < 0x600) \
|
||||||
|
|| (BOOST_MPL_CFG_GCC != 0)
|
||||||
# define BOOST_MPL_AUX_ASSERT_CONSTANT(T, expr) enum { expr }
|
# define BOOST_MPL_AUX_ASSERT_CONSTANT(T, expr) enum { expr }
|
||||||
#else
|
#else
|
||||||
# define BOOST_MPL_AUX_ASSERT_CONSTANT(T, expr) BOOST_STATIC_CONSTANT(T, expr)
|
# define BOOST_MPL_AUX_ASSERT_CONSTANT(T, expr) BOOST_STATIC_CONSTANT(T, expr)
|
||||||
|
Reference in New Issue
Block a user