1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
| | 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<mustache::string_type> 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<mustache::string_type> context{ctx};
parser<mustache::string_type>{input, context, root_component, error_message};
CHECK(error_message.empty());
- const auto& root_children = root_component.children;
const std::vector<mustache::string_type> 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
|