From: Kevin Wojniak Subject: Remove unused variables. Without that fix tests.cpp fail to build in Guix with the following errors: error: unused variable ‘stream’ [-Werror=unused-variable] error: unused variable ‘root_children’ [-Werror=unused-variable] Forwarded: not-needed Origin: upstream, https://github.com/kainjow/Mustache/commit/a790aae190f6744c3abe6a4c8325005377c2b72c Applied-Upstream: https://github.com/kainjow/Mustache/commit/a790aae190f6744c3abe6a4c8325005377c2b72c --- tests.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests.cpp b/tests.cpp index 84b4abe..e013d45 100644 --- a/tests.cpp +++ b/tests.cpp @@ -1158,7 +1158,7 @@ TEST_CASE("custom_context") { SECTION("basic") { my_context ctx; mustache tmpl("Hello {{what}}"); - std::ostream& stream = tmpl.render(ctx, std::cout) << std::endl; + tmpl.render(ctx, std::cout) << std::endl; CHECK(tmpl.is_valid()); CHECK(tmpl.error_message() == ""); CHECK(tmpl.render(ctx) == "Hello Steve"); @@ -1218,7 +1218,6 @@ TEST_CASE("standalone_lines") { context_internal context{ctx}; parser{input, context, root_component, error_message}; CHECK(error_message.empty()); - const auto& root_children = root_component.children; const std::vector text_components{"\n", "\r\n", "\t", " ", "\n", "\n", "\r"}; REQUIRE(root_component.children.size() == 7); REQUIRE(root_component.children.size() == text_components.size()); -- 2.39.1