Repository navigation
Remove public _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS definition - #3457
Merged
jmachowinski merged 1 commit intoNov 29, 2026
Merged
jmachowinski merged 1 commit into
jmachowinski merged 1 commit into
Conversation
#1598 defined it on Windows, along with new uses of `std::allocator<void>`, whose explicit specialization was deprecated in C++17. Since it is public, it silences all of MSVC's C++17 deprecation warnings in every package that depends on `rclcpp`. C++20, which Rolling now uses, removed that specialization. Signed-off-by: Christophe Bedard <[email protected]>
Member
Author
|
Pulls: #3457 |
ABI Compliance Check✅ Verdict: compatible
✅
|
jmachowinski
approved these changes
Nov 29, 2026
christophebedard
deleted the
christophebedard/remove-silence-cxx17-deprecation-warnings
branch
November 29, 2026 16:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
#1598 defined
_SILENCE_ALL_CXX17_DEPRECATION_WARNINGSon Windows, along with new uses ofstd::allocator<void>, whose explicit specialization was deprecated in C++17. Since it is a public compile definition, it silences all of MSVC's C++17 deprecation warnings in every package that depends onrclcpp. C++20, which Rolling now uses, removed that specialization.Is this user-facing behavior change?
Yes: on Windows,
rclcppno longer defines_SILENCE_ALL_CXX17_DEPRECATION_WARNINGSfor packages that depend on it, so MSVC warns about any standard library features deprecated in C++17 that they use.Did you use Generative AI?
Claude Opus 5.5 to find this and remove it.
Additional Information