Skip to content

Fix of enum warnings for MSVC 2022 ROS2 windows rolling build#2343

Closed
knmcguire wants to merge 1 commit intoeclipse-cyclonedds:releases/0.10.xfrom
knmcguire:fix_enum_warn
Closed

Fix of enum warnings for MSVC 2022 ROS2 windows rolling build#2343
knmcguire wants to merge 1 commit intoeclipse-cyclonedds:releases/0.10.xfrom
knmcguire:fix_enum_warn

Conversation

@knmcguire
Copy link

Hi!

This PR is fixing the enum comparison warnings for MSVC 2022 builds for ROS2 on windows (warning C5286 C5287). Cyclone-dds 0.10.x was resulting in over 1500 warnings (See this on the ros2 ci: https://ci.ros2.org/job/test_ci_windows/687/)

With this patch in place, the warnings were resolved (see this test build on ros2 ci).

I'll leave this in draft so that you and the ROS PMC can discuss if this change is desired. An alternative would be to fix this all by all local cmake suppressions of these warnings, but that was a wack-a-mole that required that suppression in a lot of cmake. This was a patch that required the least amount of code change but perhaps not something to be desired.

Related to ros2/ci#832 (comment)

Just let me know what you think.

Generated-by: Claude Code Opus-4.5 (Release 2025/11/01) .
@knmcguire
Copy link
Author

We have noticed that this PR together with the master branch of cyclone dds also resolves those warnings. ros2/rmw_cyclonedds#550

I'll close this PR for now, but we can reopen if necessary.

@knmcguire knmcguire closed this Feb 19, 2026
@github-project-automation github-project-automation bot moved this from In Progress to Done in Windows 11 Work! Feb 19, 2026
@knmcguire knmcguire moved this from Done to Skipped in Windows 11 Work! Mar 5, 2026
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.

1 participant