You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2021/09/03 21:40:58 UTC

[couchdb] branch suppress-compiler-warnings created (now e09bdf7)

This is an automated email from the ASF dual-hosted git repository.

jaydoane pushed a change to branch suppress-compiler-warnings
in repository https://gitbox.apache.org/repos/asf/couchdb.git.


      at e09bdf7  Suppress compiler warnings

This branch includes the following new commits:

     new e09bdf7  Suppress compiler warnings

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[couchdb] 01/01: Suppress compiler warnings

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jaydoane pushed a commit to branch suppress-compiler-warnings
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit e09bdf7cdd9ac05e91d0268ca9e3ea32256c7f39
Author: Jay Doane <ja...@apache.org>
AuthorDate: Thu Sep 2 23:37:43 2021 -0700

    Suppress compiler warnings
---
 src/chttpd/test/exunit/pagination_test.exs | 4 ++--
 src/chttpd/test/exunit/tracing_test.exs    | 4 +---
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/chttpd/test/exunit/pagination_test.exs b/src/chttpd/test/exunit/pagination_test.exs
index 4e0a5d6..e41dee7 100644
--- a/src/chttpd/test/exunit/pagination_test.exs
+++ b/src/chttpd/test/exunit/pagination_test.exs
@@ -109,7 +109,7 @@ defmodule Couch.Test.Pagination do
     paginate_queries(context, [], opts)
   end
 
-  defp paginate_queries(context, acc, opts) do
+  defp paginate_queries(context, _acc, opts) do
     {paginate_opts, client_opts} = Keyword.split(opts, [:url, :direction])
 
     resp =
@@ -1262,7 +1262,7 @@ defmodule Couch.Test.Pagination do
                    inspect(field(results, "id"))
                  })
 
-          keys = Enum.map(results, &Map.get(&1, "key"))
+          _keys = Enum.map(results, &Map.get(&1, "key"))
         end
       end
     end
diff --git a/src/chttpd/test/exunit/tracing_test.exs b/src/chttpd/test/exunit/tracing_test.exs
index f66fb87..4758cd4 100644
--- a/src/chttpd/test/exunit/tracing_test.exs
+++ b/src/chttpd/test/exunit/tracing_test.exs
@@ -1,7 +1,5 @@
 defmodule Couch.Test.OpenTracing do
   use Couch.Test.ExUnit.Case
-  alias Couch.Test.Setup
-  alias Couch.Test.Setup.Step
   alias Couch.Test.Utils
   import Couch.DBTest, only: [retry_until: 1]
 
@@ -17,7 +15,7 @@ defmodule Couch.Test.OpenTracing do
   end
 
   setup_all context do
-    test_ctx = :test_util.start_couch([:chttpd])
+    _test_ctx = :test_util.start_couch([:chttpd])
     :ok = create_admin("adm", "pass")
 
     Map.merge(context, %{