]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: define BOOST_COROUTINES_NO_DEPRECATION_WARNING if not yet 26502/head
authorKefu Chai <kchai@redhat.com>
Tue, 19 Feb 2019 09:07:27 +0000 (17:07 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 19 Feb 2019 09:08:08 +0000 (17:08 +0800)
to silence warnings like

/home/jenkins-build/build/workspace/ceph-pull-requests/src/common/async/yield_context.h:30:0:
warning: "BOOST_COROUTINES_NO_DEPRECATION_WARNING" redefined

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/async/yield_context.h

index e920e1c41ec883fe30202d7304a2dd0473b26b47..fda9541eb436e9cd604690862205ea713f2b546d 100644 (file)
@@ -26,8 +26,9 @@ struct yield_context;
 }
 
 #else // HAVE_BOOST_CONTEXT
-
+#ifndef BOOST_COROUTINES_NO_DEPRECATION_WARNING
 #define BOOST_COROUTINES_NO_DEPRECATION_WARNING
+#endif
 #include <boost/asio/spawn.hpp>
 
 #endif // HAVE_BOOST_CONTEXT