Skip to content

Fix compiler warning ‘error_level’ may be used uninitialized#4253

Merged
SteveMacenski merged 1 commit intoros-navigation:mainfrom
nobleo:fix/rolling
Apr 10, 2024
Merged

Fix compiler warning ‘error_level’ may be used uninitialized#4253
SteveMacenski merged 1 commit intoros-navigation:mainfrom
nobleo:fix/rolling

Conversation

@Timple
Copy link
Contributor

@Timple Timple commented Apr 10, 2024


Basic Info

Info Please fill out this column
Ticket(s) this addresses ros/diagnostics#337
Primary OS tested on Ubuntu Noble
Robotic platform tested on None
Does this PR contain AI generated software? No

Description of contribution in a few bullet points

Since -Werror is enforced in navigation2, it was unable to compile on newer cmake versions (ROS rolling, ubuntu Nobleo, cmake 3.28.3).

For Maintainers:

  • Check that any new parameters added are updated in navigation.ros.org
  • Check that any significant change is added to the migration guide
  • Check that any new features OR changes to existing behaviors are reflected in the tuning guide
  • Check that any new functions have Doxygen added
  • Check that any new features have test coverage
  • Check that any new plugins is added to the plugins page
  • If BT Node, Additionally: add to BT's XML index of nodes for groot, BT package's readme table, and BT library lists

@Timple
Copy link
Contributor Author

Timple commented Apr 10, 2024

Alternatively error_level can be initialized with a default:

auto error_level = diagnostic_msgs::msg::DiagnosticStatus::ERROR;

But I thought that might perhaps lead to confusion.

Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl>
@SteveMacenski SteveMacenski merged commit 8af70ab into ros-navigation:main Apr 10, 2024
ajtudela pushed a commit to grupo-avispa/navigation2 that referenced this pull request Apr 19, 2024
enricosutera pushed a commit to enricosutera/navigation2 that referenced this pull request May 19, 2024
…igation#4253)

Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl>
Signed-off-by: enricosutera <enricosutera@outlook.com>
Marc-Morcos pushed a commit to Marc-Morcos/navigation2 that referenced this pull request Jul 4, 2024
Manos-G pushed a commit to Manos-G/navigation2 that referenced this pull request Aug 1, 2024
stevedanomodolor pushed a commit to stevedanomodolor/navigation2 that referenced this pull request Apr 29, 2025
…igation#4253)

Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl>
Signed-off-by: stevedanomodolor <stevedan.o.omodolor@gmail.com>
@Timple Timple deleted the fix/rolling branch February 19, 2026 19:26
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.

2 participants