Skip to content

Commit

Permalink
Tests: Fix warnings in tests about nodiscard
Browse files Browse the repository at this point in the history
  • Loading branch information
mwestphal committed Dec 28, 2024
1 parent 46d2a66 commit 03ca5c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions library/testing/TestSDKInteractorDocumentation.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ int TestSDKInteractorDocumentation(int argc, char* argv[])
{
// check exceptions for invalid args
test.expect<f3d::interactor::does_not_exists_exception>(
"Initial invalid group", [&]() { inter.getBindsForGroup("Invalid"); });
"Initial invalid group", [&]() { std::ignore = inter.getBindsForGroup("Invalid"); });

test.expect<f3d::interactor::does_not_exists_exception>("Initial invalid bind", [&]() {
inter.getBindingDocumentation({ mod_t::ANY, "Invalid" });
std::ignore = inter.getBindingDocumentation({ mod_t::ANY, "Invalid" });
});
}

Expand All @@ -53,10 +53,10 @@ int TestSDKInteractorDocumentation(int argc, char* argv[])
test("Empty binds size", inter.getBinds().size() == 0);
// check exceptions for invalid args
test.expect<f3d::interactor::does_not_exists_exception>(
"Empty group", [&]() { inter.getBindsForGroup("Camera"); });
"Empty group", [&]() { std::ignore = inter.getBindsForGroup("Camera"); });

test.expect<f3d::interactor::does_not_exists_exception>("Empty bind", [&]() {
inter.getBindingDocumentation({ mod_t::ANY, "5" });
std::ignore = inter.getBindingDocumentation({ mod_t::ANY, "5" });
});
}

Expand Down

0 comments on commit 03ca5c1

Please sign in to comment.