From 47bcce255b021590617231cda00f405c3ba6e1dc Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 19 Feb 2019 17:07:27 +0800 Subject: [PATCH] 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 --- src/common/async/yield_context.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/async/yield_context.h b/src/common/async/yield_context.h index e920e1c41ec88..fda9541eb436e 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 -- 2.39.5