X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Flibs%2Fbind%2Ftest%2Fbind_function_ap_test.cpp;h=67551d324781a1967c02dfc4f09e1ddc9c1d7745;hb=b32b81446b3b05102be0267e79203f59329c1d97;hp=900a131805089f4e36a94603f872b1b7ae4209e3;hpb=215dd7151453fae88e6f968c975b6ce309d42dcf;p=ceph.git diff --git a/ceph/src/boost/libs/bind/test/bind_function_ap_test.cpp b/ceph/src/boost/libs/bind/test/bind_function_ap_test.cpp index 900a13180..67551d324 100644 --- a/ceph/src/boost/libs/bind/test/bind_function_ap_test.cpp +++ b/ceph/src/boost/libs/bind/test/bind_function_ap_test.cpp @@ -10,6 +10,14 @@ // http://www.boost.org/LICENSE_1_0.txt // +#if defined( BOOST_NO_AUTO_PTR ) + +int main() +{ +} + +#else + #if defined( __GNUC__ ) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 406 ) # pragma GCC diagnostic ignored "-Wdeprecated-declarations" #elif defined( __clang__ ) && defined( __has_warning ) @@ -222,3 +230,5 @@ int main() test(); return boost::report_errors(); } + +#endif // #if defined( BOOST_NO_AUTO_PTR )