Skip to content

Commit

Permalink
Fix maybe-unused warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Sep 27, 2021
1 parent 4f83b60 commit 655ccc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/relation_range.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void doTestExampleMC(ExampleMCCollection const& collection)
}

try {
const auto parent = parents.at(3);
const auto parent [[maybe_unused]] = parents.at(3);
throw std::runtime_error("Trying to access out of bounds in a RelationRange::at should throw");
} catch (const std::out_of_range& err) {
ASSERT_EQUAL(err.what(), std::string("index out of bounds for RelationRange"),
Expand Down

0 comments on commit 655ccc4

Please sign in to comment.