[SERVER-29082] Silence boost internal header deprecation warnings Created: 04/May/17  Updated: 30/Oct/23  Resolved: 05/May/17

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 3.5.7

Type: Improvement Priority: Major - P3
Reporter: Mathias Stearn Assignee: Mathias Stearn
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Repl 2017-05-08
Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 05/May/17 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-29082 silence boost internal deprecation warning

These warnings are intended for other boost developers, not consumers of the
library, so they are just noise in our build. Additionally, #pragma message
seems to confuse gcc in -fdirectives-only mode.
Branch: master
https://github.com/mongodb/mongo/commit/06c1c59750e4ce2eafa6b42966bd0759e47a496b

Generated at Thu Feb 08 04:19:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.