Skip to content

Use pragma message for obsolete parser header on MSVC - #56

Merged
wjwwood merged 1 commit into
ros2:rollingfrom
Tobias-Fischer:codex/robostack-urdf-parser-plugin-msvc-warning
Aug 15, 2026
Merged

wjwwood merged 1 commit into
ros2:rollingfrom
Tobias-Fischer:codex/robostack-urdf-parser-plugin-msvc-warning

Conversation

@Tobias-Fischer

Copy link
Copy Markdown

This is part of an effort to contribute RoboStack downstream patches back upstream.

This upstreams patch/ros-rolling-urdf-parser-plugin.win.patch, authored in RoboStack by wep21 <[email protected]>.

MSVC does not support the GCC-style #warning directive. This uses #pragma message for MSVC while preserving the existing warning on compilers that support it.

This upstreams a RoboStack build fix from patch/ros-rolling-urdf-parser-plugin.win.patch.

MSVC does not support the GCC-style #warning directive. Use #pragma message for MSVC while preserving the existing warning on compilers that support it.

Signed-off-by: Tobias Fischer <[email protected]>
@Tobias-Fischer

Copy link
Copy Markdown
Author

FYI @wep21 @traversaro, this is a small PR from the effort to upstream RoboStack downstream patches tracked in RoboStack/robostack#124.

@mergify

mergify Bot commented Jul 19, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@wjwwood wjwwood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, though I hate we have to repeat our selves here, and also it's a shame that MSVC does actually support this, just not in C++20 mode, as this directive was officially added in C++23 (https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2437r1.pdf) and MSVC will allow it in C++23 mode.

@wjwwood

wjwwood commented Aug 14, 2026

Copy link
Copy Markdown
Member

Pulls: #56
Gist: https://gist.githubusercontent.com/wjwwood/1fc27710430d054462840677473914b9/raw/f6bc3ba184d8341c55650c81541da48e8871ed0d/ros2.repos
BUILD args: --packages-above-and-dependencies urdf_parser_plugin
TEST args: --packages-above urdf_parser_plugin
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/20085

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

@wjwwood
wjwwood merged commit 649e4bf into ros2:rolling Aug 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants