From d6a596d9da0c5284b9c35e51d11a9096496f8280 Mon Sep 17 00:00:00 2001 From: Gary Lockyer Date: Fri, 7 Jun 2019 15:12:11 +1200 Subject: [PATCH] lib ldb ldb_key_value: csbuild ldb_kv_index_dn_not unused parms MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes csbuild errors. Error: COMPILER_WARNING: lib/ldb/ldb_key_value/ldb_kv_index.c: scope_hint: In function ‘ldb_kv_index_dn_not’ lib/ldb/ldb_key_value/ldb_kv_index.c:1503:51: warning: unused parameter ‘module’ [-Wunus ed-parameter] Error: COMPILER_WARNING: lib/ldb/ldb_key_value/ldb_kv_index.c:1504:34: warning: unused parameter ‘ldb_kv’ [-Wunused-parameter] Error: COMPILER_WARNING: lib/ldb/ldb_key_value/ldb_kv_index.c:1505:40: warning: unused parameter ‘tree’ [-Wunused-parameter] Error: COMPILER_WARNING: lib/ldb/ldb_key_value/ldb_kv_index.c:1506:27: warning: unused parameter ‘list’ [-Wunused-parameter] Tag unused parameters in ldb_kv_index_dn_not with _UNUSED_ Signed-off-by: Gary Lockyer Reviewed-by: Andreas Schneider --- lib/ldb/ldb_key_value/ldb_kv_index.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ldb/ldb_key_value/ldb_kv_index.c b/lib/ldb/ldb_key_value/ldb_kv_index.c index 941cbdc8001..dfea9da79d4 100644 --- a/lib/ldb/ldb_key_value/ldb_kv_index.c +++ b/lib/ldb/ldb_key_value/ldb_kv_index.c @@ -1500,10 +1500,10 @@ static int ldb_kv_index_dn_or(struct ldb_module *module, /* NOT an index results */ -static int ldb_kv_index_dn_not(struct ldb_module *module, - struct ldb_kv_private *ldb_kv, - const struct ldb_parse_tree *tree, - struct dn_list *list) +static int ldb_kv_index_dn_not(_UNUSED_ struct ldb_module *module, + _UNUSED_ struct ldb_kv_private *ldb_kv, + _UNUSED_ const struct ldb_parse_tree *tree, + _UNUSED_ struct dn_list *list) { /* the only way to do an indexed not would be if we could negate the not via another not or if we knew the total -- 2.47.3