From: Kefu Chai Date: Mon, 16 Nov 2020 08:16:38 +0000 (+0800) Subject: mgr: only include necessary headers X-Git-Tag: v17.0.0~603^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=24e57a211b6b76885e3e19f8d25c9aa483ed0e16;p=ceph-ci.git mgr: only include necessary headers for two reasons: * faster compilation with less source files to process * avoid including "boost/detail/iterator.hpp", so we can silence the warning like: boost/detail/iterator.hpp:13:1: note: ‘#pragma message: This header is deprecated. Use instead.’ 13 | BOOST_HEADER_DEPRECATED("") | ^~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Kefu Chai --- diff --git a/src/mgr/PyModule.cc b/src/mgr/PyModule.cc index 365c3e3cd9b..07461af3b88 100644 --- a/src/mgr/PyModule.cc +++ b/src/mgr/PyModule.cc @@ -34,7 +34,9 @@ std::string PyModule::config_prefix = "mgr/"; #define BOOST_BIND_GLOBAL_PLACEHOLDERS // Boost apparently can't be bothered to fix its own usage of its own // deprecated features. -#include +#include +#include +#include #undef BOOST_BIND_GLOBAL_PLACEHOLDERS #include #include "include/ceph_assert.h" // boost clobbers this