lib ldb ldb_key_value: csbuild ldb_kv_index_dn_not unused parms
authorGary Lockyer <gary@catalyst.net.nz>
Fri, 7 Jun 2019 03:12:11 +0000 (15:12 +1200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 13 Jun 2019 07:16:23 +0000 (07:16 +0000)
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 <gary@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/ldb/ldb_key_value/ldb_kv_index.c

index 941cbdc80017e3ea0e8320b512f987c3e4eac57f..dfea9da79d437724564573368cdcfee2cb97ff9b 100644 (file)
@@ -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