]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/context/posix/protected_fixedsize_stack.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / context / posix / protected_fixedsize_stack.hpp
index 79e462f5e8a7460388876a3c0f09bb3ac7802697..69c1128b09faec513df81a183cdadda575d45fe9 100644 (file)
@@ -20,6 +20,7 @@ extern "C" {
 
 #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>
@@ -67,12 +68,9 @@ public:
         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__;