all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 1015f1f44cde2989fd9f6d83e6b5ffa2b6f0527f 1633 bytes (raw)
name: gnu/packages/patches/cpp-mustache-remove-unused-variables.patch 	 # note: path name is non-authoritative(*)

 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


debug log:

solving 1015f1f44c ...
found 1015f1f44c in https://yhetil.org/guix/20230515144856.26b5d1e4@primary_laptop/

applying [1/1] https://yhetil.org/guix/20230515144856.26b5d1e4@primary_laptop/
diff --git a/gnu/packages/patches/cpp-mustache-remove-unused-variables.patch b/gnu/packages/patches/cpp-mustache-remove-unused-variables.patch
new file mode 100644
index 0000000000..1015f1f44c

1:41: trailing whitespace.
-- 
Checking patch gnu/packages/patches/cpp-mustache-remove-unused-variables.patch...
1:43: new blank line at EOF.
+
Applied patch gnu/packages/patches/cpp-mustache-remove-unused-variables.patch cleanly.
warning: 2 lines add whitespace errors.

index at:
100644 1015f1f44cde2989fd9f6d83e6b5ffa2b6f0527f	gnu/packages/patches/cpp-mustache-remove-unused-variables.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.