Skip to content

test(grid_map_core): remove unused variables in SubmapIteratorTest - #559

Merged
wep21 merged 1 commit into
ANYbotics:rollingfrom
wep21:test/submap-iterator-unused-variables
Nov 14, 2026
Merged

wep21 merged 1 commit into
ANYbotics:rollingfrom
wep21:test/submap-iterator-unused-variables

Conversation

@wep21

@wep21 wep21 commented Nov 14, 2026

Copy link
Copy Markdown
Collaborator

What

Remove the variables index and submapIndex from the two tests in SubmapIteratorTest.cpp. The tests declare them but never use them. Split from #556.

Why

With Eigen 5, Clang reports them with -Wunused-variable, so the tests of grid_map_core do not build with -Werror:

grid_map_core/test/SubmapIteratorTest.cpp:31:18: error: unused variable 'index' [-Werror,-Wunused-variable]

Only builds with tests are affected.

How it was tested

🤖 Generated with Claude Code

The tests declare two Eigen::Array2i variables that they never use.
With Eigen 5, Clang reports them with -Wunused-variable, and the test
does not build with -Werror.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wep21
wep21 merged commit 4819906 into ANYbotics:rolling Nov 14, 2026
5 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.

1 participant