From: Gary Lockyer Date: Fri, 7 Jun 2019 03:12:11 +0000 (+1200) Subject: lib ldb ldb_key_value: csbuild ldb_kv_index_dn_not unused parms X-Git-Tag: ldb-2.0.5~384 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d6a596d9da0c5284b9c35e51d11a9096496f8280;p=thirdparty%2Fsamba.git lib ldb ldb_key_value: csbuild ldb_kv_index_dn_not unused parms 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 --- 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