You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ro...@apache.org on 2024/10/12 17:17:28 UTC

(couchdb) branch main updated: chore(dev): Fix unused variable compiler warnings (#5298)

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

ronny pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/main by this push:
     new 9bb965552 chore(dev): Fix unused variable compiler warnings (#5298)
9bb965552 is described below

commit 9bb96555267d9b24d181899b17b7e01f34961852
Author: Ronny Berndt <ro...@apache.org>
AuthorDate: Sat Oct 12 19:17:22 2024 +0200

    chore(dev): Fix unused variable compiler warnings (#5298)
---
 src/nouveau/src/nouveau_fabric_info.erl   | 2 +-
 src/nouveau/src/nouveau_fabric_search.erl | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/nouveau/src/nouveau_fabric_info.erl b/src/nouveau/src/nouveau_fabric_info.erl
index 9bd8ef6ce..0fe41af5a 100644
--- a/src/nouveau/src/nouveau_fabric_info.erl
+++ b/src/nouveau/src/nouveau_fabric_info.erl
@@ -30,7 +30,7 @@ go(DbName, DDoc, IndexName) ->
             {error, Reason}
     end.
 
-go(DbName, DDoc, IndexName, Index) ->
+go(DbName, _DDoc, _IndexName, Index) ->
     Shards = mem3:shards(DbName),
     Counters0 = lists:map(
         fun(#shard{} = Shard) ->
diff --git a/src/nouveau/src/nouveau_fabric_search.erl b/src/nouveau/src/nouveau_fabric_search.erl
index 15df7e582..3ec9d96fd 100644
--- a/src/nouveau/src/nouveau_fabric_search.erl
+++ b/src/nouveau/src/nouveau_fabric_search.erl
@@ -43,7 +43,7 @@ go(DbName, #doc{} = DDoc, IndexName, QueryArgs0) ->
             {error, Reason}
     end.
 
-go(DbName, #doc{} = DDoc, IndexName, QueryArgs0, Index) ->
+go(DbName, #doc{} = _DDoc, _IndexName, QueryArgs0, Index) ->
     Shards = get_shards(DbName, QueryArgs0),
     {PackedBookmark, #{limit := Limit, sort := Sort} = QueryArgs1} =
         maps:take(bookmark, QueryArgs0),