FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix warnings on Windows. by clalancette · Pull Request #2692 · ros2/rclcpp · GitHub

/ rclcpp Public

Fix warnings on Windows. - #2692

Merged
fujitatomoya merged 1 commit into
rollingfrom
clalancette/fix-windows-warnings
Dec 3, 2024
Merged

Fix warnings on Windows.#2692
fujitatomoya merged 1 commit into
rollingfrom
clalancette/fix-windows-warnings

Conversation

clalancette commented Dec 3, 2024
edited
Loading

Copy link
Copy Markdown
Contributor

For reasons I admit I do not understand, the deprecation warnings for StaticSingleThreadedExecutor on Windows happen when we construct a shared_ptr for it in the tests. If we construct a regular object, then it is fine. Luckily this test does not require a shared_ptr, so just make it a regular object here, which fixes the warning.

While we are in here, make all of the tests camel case to be consistent.

This should fix the warnings introduced by #2683 . @jmachowinski @fujitatomoya FYI

For reasons I admit I do not understand, the deprecation
warnings for StaticSingleThreadedExecutor on Windows
happen when we construct a shared_ptr for it in the tests.
If we construct a regular object, then it is fine.  Luckily
this test does not require a shared_ptr, so just make it
a regular object here, which rixes the warning.

While we are in here, make all of the tests camel case to
be consistent.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>

Copy link
Copy Markdown
Contributor Author

Pulls: #2692
Gist: https://gist.githubusercontent.com/clalancette/c93b0541e50656956582ac2648800c27/raw/e16918165506e97bbce2fd15ddaa084ff5bae568/ros2.repos
BUILD args: --packages-up-to rclcpp
TEST args: --packages-select rclcpp
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/14898

  • Linux
  • Linux-aarch64
  • Linux-rhel
  • Windows

fujitatomoya left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

lgtm with green CI

fujitatomoya merged commit 3310f9e into rolling Dec 3, 2024

Copy link
Copy Markdown
Collaborator

@Mergifyio backport jazzy

mergify Bot commented Dec 3, 2024
edited
Loading

Copy link
Copy Markdown
Contributor

backport jazzy

✅ Backports have been created

Details

mergify Bot pushed a commit that referenced this pull request Dec 3, 2024
For reasons I admit I do not understand, the deprecation
warnings for StaticSingleThreadedExecutor on Windows
happen when we construct a shared_ptr for it in the tests.
If we construct a regular object, then it is fine.  Luckily
this test does not require a shared_ptr, so just make it
a regular object here, which rixes the warning.

While we are in here, make all of the tests camel case to
be consistent.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
(cherry picked from commit 3310f9e)

# Conflicts:
#	rclcpp/test/rclcpp/executors/test_executors.cpp
clalancette deleted the clalancette/fix-windows-warnings branch December 3, 2024 13:20
ahcorde pushed a commit that referenced this pull request Dec 4, 2024
* Fix warnings on Windows. (#2692)

For reasons I admit I do not understand, the deprecation
warnings for StaticSingleThreadedExecutor on Windows
happen when we construct a shared_ptr for it in the tests.
If we construct a regular object, then it is fine.  Luckily
this test does not require a shared_ptr, so just make it
a regular object here, which rixes the warning.

While we are in here, make all of the tests camel case to
be consistent.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
(cherry picked from commit 3310f9e)

# Conflicts:
#	rclcpp/test/rclcpp/executors/test_executors.cpp

* resolve backport conflict.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

---------

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Co-authored-by: Chris Lalancette <clalancette@gmail.com>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
HarunTeper pushed a commit to HarunTeper/rclcpp that referenced this pull request Dec 9, 2024
For reasons I admit I do not understand, the deprecation
warnings for StaticSingleThreadedExecutor on Windows
happen when we construct a shared_ptr for it in the tests.
If we construct a regular object, then it is fine.  Luckily
this test does not require a shared_ptr, so just make it
a regular object here, which rixes the warning.

While we are in here, make all of the tests camel case to
be consistent.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Signed-off-by: HarunTeper <harun.teper@tu-dortmund.de>
HarunTeper pushed a commit to HarunTeper/rclcpp that referenced this pull request Dec 9, 2024
For reasons I admit I do not understand, the deprecation
warnings for StaticSingleThreadedExecutor on Windows
happen when we construct a shared_ptr for it in the tests.
If we construct a regular object, then it is fine.  Luckily
this test does not require a shared_ptr, so just make it
a regular object here, which rixes the warning.

While we are in here, make all of the tests camel case to
be consistent.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Signed-off-by: HarunTeper <harun.teper@tu-dortmund.de>
HarunTeper pushed a commit to HarunTeper/rclcpp that referenced this pull request Dec 9, 2024
For reasons I admit I do not understand, the deprecation
warnings for StaticSingleThreadedExecutor on Windows
happen when we construct a shared_ptr for it in the tests.
If we construct a regular object, then it is fine.  Luckily
this test does not require a shared_ptr, so just make it
a regular object here, which rixes the warning.

While we are in here, make all of the tests camel case to
be consistent.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
HarunTeper pushed a commit to HarunTeper/rclcpp that referenced this pull request Mar 3, 2025
For reasons I admit I do not understand, the deprecation
warnings for StaticSingleThreadedExecutor on Windows
happen when we construct a shared_ptr for it in the tests.
If we construct a regular object, then it is fine.  Luckily
this test does not require a shared_ptr, so just make it
a regular object here, which rixes the warning.

While we are in here, make all of the tests camel case to
be consistent.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Signed-off-by: HarunTeper <harun.teper@tu-dortmund.de>
bartalor pushed a commit to bartalor/rclcpp that referenced this pull request Jul 15, 2026
For reasons I admit I do not understand, the deprecation
warnings for StaticSingleThreadedExecutor on Windows
happen when we construct a shared_ptr for it in the tests.
If we construct a regular object, then it is fine.  Luckily
this test does not require a shared_ptr, so just make it
a regular object here, which rixes the warning.

While we are in here, make all of the tests camel case to
be consistent.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL