#include <boost/assert.hpp>
#include <boost/config.hpp>
+#include <boost/core/ignore_unused.hpp>
#include <boost/context/detail/config.hpp>
#include <boost/context/stack_context.hpp>
if ( MAP_FAILED == vp) throw std::bad_alloc();
// conforming to POSIX.1-2001
-#if defined(BOOST_DISABLE_ASSERTS)
- ::mprotect( vp, traits_type::page_size(), PROT_NONE);
-#else
const int result( ::mprotect( vp, traits_type::page_size(), PROT_NONE) );
+ boost::ignore_unused(result);
BOOST_ASSERT( 0 == result);
-#endif
stack_context sctx;
sctx.size = size__;