]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib ldb ldb_key_value: csbuild fix unused parm data
authorGary Lockyer <gary@catalyst.net.nz>
Fri, 7 Jun 2019 03:22:45 +0000 (15:22 +1200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 13 Jun 2019 07:16:23 +0000 (07:16 +0000)
Fixes csbuild error.

Error: COMPILER_WARNING:
lib/ldb/ldb_key_value/ldb_kv_index.c: scope_hint: In function
‘delete_index’
lib/ldb/ldb_key_value/ldb_kv_index.c:3221:19: warning: unused parameter
‘data’ [-Wunused-parameter]

Tags unused parameters in callback delete_index 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 3a96e5ad8b3b47a8dd20c9a2b352e2aca7f57783..999f802dcfe2df150402e9b51b5a6b5452876782 100644 (file)
@@ -3217,7 +3217,7 @@ int ldb_kv_index_delete(struct ldb_module *module,
 */
 static int delete_index(struct ldb_kv_private *ldb_kv,
                        struct ldb_val key,
-                       struct ldb_val data,
+                       _UNUSED_ struct ldb_val data,
                        void *state)
 {
        struct ldb_module *module = state;