Repository navigation
Fix clang -Werror errors in nav2_system_tests and nav2_rviz_plugins (backport #6803) - #6806
Merged
Merged
Conversation
…6803) * nav2_system_tests: mark controller error plugin overrides Clang reports -Winconsistent-missing-override (an error under -Werror) because configure() is marked override and the other overrides are not. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Dhruv Patel <[email protected]> * nav2_rviz_plugins: discard the stoi() result explicitly stoi(loop_value) only validates the input; libc++ marks std::stoi [[nodiscard]], so clang reports -Wunused-result (an error under -Werror). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Dhruv Patel <[email protected]> --------- Signed-off-by: Dhruv Patel <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> (cherry picked from commit 6272fad)
Contributor
Author
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
jwallace42
self-requested a review
November 17, 2026 18:50
jwallace42
approved these changes
Nov 17, 2026
Contributor
|
@Mergifyio queue |
Contributor
Author
🚫 Left the queue · pull request dequeuedLess than a minute in the queue, with no time running CI. So far
Reason Pull request #6806 has been dequeued GitHub refused to merge the pull request. You're not authorized to push to this branch. Visit https://docs.github.com/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches for more information. This is usually enforced by a branch protection or ruleset rule. To get back in the queue
1 merge condition met
Times in UTC · dashboard · how the merge queue works |
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Basic Info
-Werror, and the compiled object code is byte-identical before and afterDescription of contribution in a few bullet points
nav2_system_tests: incontroller_error_plugins.hpp,UnknownErrorController::configure()is markedoverridebutcleanup,activate,deactivate,newPathReceived,computeVelocityCommandsandsetSpeedLimitare not. Clang reports-Winconsistent-missing-override, whichnav2_package()'s-Werrorturns into a build error. Marked themoverride.nav2_rviz_plugins:stoi(loop_value);innav2_panel.cpponly validates the input (thecatchblocks handle invalid values). libc++ marksstd::stoi[[nodiscard]], so clang reports-Wunused-result(an error under-Werror). The result is now discarded explicitly withstatic_cast<void>(...).overrideis a compile-time check, and thestoicall and its exceptions are unchanged.Description of documentation updates required from your changes
Description of how this change was tested
newPathReceivedbeingsetPlanthere), build with Apple clang 21 on macOS 27 with-Werror, and the generated object code (otool -tV) is identical before and after.pre-commit run --fileson both files: all hooks pass exceptament_uncrustifyonnav2_panel.cpp. My local version flags the unmodified upstream file the same way, and not on the changed line.main.Future work that may be required in bullet points
For Maintainers:
backport-*.This is an automatic backport of pull request Fix clang -Werror errors in nav2_system_tests and nav2_rviz_plugins #6803 done by Mergify.