From 07cdef2096ad38ec386ee5e4d7705978038dc651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Sun, 24 Apr 2022 12:25:46 +0200 Subject: [PATCH] Fix uninit memory in Clara tests --- tests/SelfTest/IntrospectiveTests/Clara.tests.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/SelfTest/IntrospectiveTests/Clara.tests.cpp b/tests/SelfTest/IntrospectiveTests/Clara.tests.cpp index f6110a7b..2cbf05b8 100644 --- a/tests/SelfTest/IntrospectiveTests/Clara.tests.cpp +++ b/tests/SelfTest/IntrospectiveTests/Clara.tests.cpp @@ -52,12 +52,11 @@ TEST_CASE("Clara::Arg supports single-arg parse the way Opt does", "[clara][arg] } TEST_CASE("Clara::Opt supports accept-many lambdas", "[clara][opt]") { - std::string name; using namespace Catch::Clara; std::vector res; const auto push_to_res = [&](std::string const& s) { res.push_back(s); - return ParserResult::ok(); + return ParserResult::ok( ParseResultType::Matched ); }; SECTION("Parsing fails on multiple options without accept_many") {