From: Kefu Chai Date: Tue, 19 Feb 2019 09:07:27 +0000 (+0800) Subject: common: define BOOST_COROUTINES_NO_DEPRECATION_WARNING if not yet X-Git-Tag: v14.1.0~23^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=47bcce255b021590617231cda00f405c3ba6e1dc;p=ceph.git common: define BOOST_COROUTINES_NO_DEPRECATION_WARNING if not yet 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 --- diff --git a/src/common/async/yield_context.h b/src/common/async/yield_context.h index e920e1c41ec8..fda9541eb436 100644 --- a/src/common/async/yield_context.h +++ b/src/common/async/yield_context.h @@ -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 #endif // HAVE_BOOST_CONTEXT