Skip to content

Remove public _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS definition - #3457

Merged
jmachowinski merged 1 commit into
rollingfrom
christophebedard/remove-silence-cxx17-deprecation-warnings
Nov 29, 2026
Merged

jmachowinski merged 1 commit into
rollingfrom
christophebedard/remove-silence-cxx17-deprecation-warnings

Conversation

@christophebedard

Copy link
Copy Markdown
Member

Description

#1598 defined _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS on Windows, along with new uses of std::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 on rclcpp. C++20, which Rolling now uses, removed that specialization.

Is this user-facing behavior change?

Yes: on Windows, rclcpp no longer defines _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS for 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

#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]>
@christophebedard christophebedard self-assigned this Nov 28, 2026
@christophebedard

Copy link
Copy Markdown
Member Author

Pulls: #3457
Gist: https://gist.githubusercontent.com/christophebedard/670bcc00955a424e1f5e7e08fa577396/raw/9f0cfade2bbe4c230937eff725a23ee4cd63f6f5/ros2.repos
BUILD args: --packages-above-and-dependencies rclcpp
TEST args: --packages-above rclcpp
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/21377

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@github-actions

Copy link
Copy Markdown

ABI Compliance Check

✅ Verdict: compatible

Library Verdict Summary
libcomponent_manager.so ✅ compatible No ABI changes detected.
librclcpp.so ✅ compatible No ABI changes detected.
librclcpp_action.so ✅ compatible No ABI changes detected.
librclcpp_lifecycle.so ✅ compatible No ABI changes detected.
✅ libcomponent_manager.so — full abidiff report

Compared:

  • Base: lib-base/libcomponent_manager.so
  • Head: lib-pr/libcomponent_manager.so @ 392d2e8
(empty report — no differences printed by abidiff)
✅ librclcpp.so — full abidiff report

Compared:

  • Base: lib-base/librclcpp.so
  • Head: lib-pr/librclcpp.so @ 392d2e8
(empty report — no differences printed by abidiff)
✅ librclcpp_action.so — full abidiff report

Compared:

  • Base: lib-base/librclcpp_action.so
  • Head: lib-pr/librclcpp_action.so @ 392d2e8
(empty report — no differences printed by abidiff)
✅ librclcpp_lifecycle.so — full abidiff report

Compared:

  • Base: lib-base/librclcpp_lifecycle.so
  • Head: lib-pr/librclcpp_lifecycle.so @ 392d2e8
(empty report — no differences printed by abidiff)

Updated for commit 392d2e8 · check run · suppressions: /home/runner/work/_temp/ros2-abi-suppressions.txt

@jmachowinski
jmachowinski merged commit 7a4be04 into rolling Nov 29, 2026
10 of 11 checks passed
@christophebedard
christophebedard deleted the christophebedard/remove-silence-cxx17-deprecation-warnings branch November 29, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants