From 92a027fbebd8e858af71eaaa86810ce31210620b Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 25 Sep 2005 22:00:31 +0000 Subject: [PATCH] Minor warning fix for SGI MIPSPro (Kevin Wheatley) [SVN r31113] --- include/boost/shared_ptr.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/boost/shared_ptr.hpp b/include/boost/shared_ptr.hpp index f78f0fe..de8c112 100644 --- a/include/boost/shared_ptr.hpp +++ b/include/boost/shared_ptr.hpp @@ -87,10 +87,19 @@ template void sp_enable_shared_from_this( shared_count const & if(pe != 0) pe->_internal_weak_this._internal_assign(const_cast(px), pn); } +#ifdef sgi +// Turn off: the last argument of the varargs function "sp_enable_shared_from_this" is unnamed +# pragma set woff 3506 +#endif + inline void sp_enable_shared_from_this( shared_count const & /*pn*/, ... ) { } +#ifdef sgi +# pragma reset woff 3506 +#endif + } // namespace detail