These warnings are targeted at other boost developers, not end users.
CXX build/ninja/mongo/shell/shell_utils_launcher.o In file included from src/mongo/shell/shell_utils_launcher.cpp:39: In file included from src/third_party/boost-1.60.0/boost/iostreams/stream.hpp:21: In file included from src/third_party/boost-1.60.0/boost/iostreams/stream_buffer.hpp:22: In file included from src/third_party/boost-1.60.0/boost/iostreams/detail/streambuf/indirect_streambuf.hpp:31: In file included from src/third_party/boost-1.60.0/boost/iostreams/detail/push.hpp:24: In file included from src/third_party/boost-1.60.0/boost/iostreams/detail/resolve.hpp:26: In file included from src/third_party/boost-1.60.0/boost/iostreams/detail/is_dereferenceable.hpp:12: src/third_party/boost-1.60.0/boost/type_traits/detail/bool_trait_def.hpp:18:10: warning: NOTE: Use of this header (bool_trait_def.hpp) is deprecated [-W#pragma-messages] # pragma message("NOTE: Use of this header (bool_trait_def.hpp) is deprecated") ^ In file included from src/mongo/shell/shell_utils_launcher.cpp:39: In file included from src/third_party/boost-1.60.0/boost/iostreams/stream.hpp:21: In file included from src/third_party/boost-1.60.0/boost/iostreams/stream_buffer.hpp:22: In file included from src/third_party/boost-1.60.0/boost/iostreams/detail/streambuf/indirect_streambuf.hpp:31: In file included from src/third_party/boost-1.60.0/boost/iostreams/detail/push.hpp:24: In file included from src/third_party/boost-1.60.0/boost/iostreams/detail/resolve.hpp:26: In file included from src/third_party/boost-1.60.0/boost/iostreams/detail/is_dereferenceable.hpp:12: In file included from src/third_party/boost-1.60.0/boost/type_traits/detail/bool_trait_def.hpp:21: src/third_party/boost-1.60.0/boost/type_traits/detail/template_arity_spec.hpp:13:10: warning: NOTE: Use of this header (template_arity_spec.hpp) is deprecated [-W#pragma-messages] # pragma message("NOTE: Use of this header (template_arity_spec.hpp) is deprecated") ^ In file included from src/mongo/shell/shell_utils_launcher.cpp:39: In file included from src/third_party/boost-1.60.0/boost/iostreams/stream.hpp:21: In file included from src/third_party/boost-1.60.0/boost/iostreams/stream_buffer.hpp:22: In file included from src/third_party/boost-1.60.0/boost/iostreams/detail/streambuf/indirect_streambuf.hpp:31: In file included from src/third_party/boost-1.60.0/boost/iostreams/detail/push.hpp:24: In file included from src/third_party/boost-1.60.0/boost/iostreams/detail/resolve.hpp:26: In file included from src/third_party/boost-1.60.0/boost/iostreams/detail/is_dereferenceable.hpp:13: src/third_party/boost-1.60.0/boost/type_traits/detail/template_arity_spec.hpp:13:10: warning: NOTE: Use of this header (template_arity_spec.hpp) is deprecated [-W#pragma-messages] # pragma message("NOTE: Use of this header (template_arity_spec.hpp) is deprecated") ^ 3 warnings generated.