diff options
author | Jay Doane <jaydoane@apache.org> | 2021-09-02 23:37:43 -0700 |
---|---|---|
committer | Jay Doane <jaydoane@apache.org> | 2021-09-03 14:31:24 -0700 |
commit | e09bdf7cdd9ac05e91d0268ca9e3ea32256c7f39 (patch) | |
tree | 0d0b0d36f75733491bbffccd9fca1350a21e2424 | |
parent | d63ab21ad76fa76b799c069037beffc19d267b4a (diff) | |
download | couchdb-suppress-compiler-warnings.tar.gz |
Suppress compiler warningssuppress-compiler-warnings
-rw-r--r-- | src/chttpd/test/exunit/pagination_test.exs | 4 | ||||
-rw-r--r-- | 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 4e0a5d6fe..e41dee7d8 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 f66fb87a2..4758cd4ca 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, %{ |