From: Gary Lockyer Date: Wed, 12 Jun 2019 20:49:16 +0000 (+1200) Subject: lib ldb ldb_key_value: csbuild unused parm ldb_kv X-Git-Tag: ldb-2.0.5~379 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fef8ec20d0f591f2e531a649108ca83c5a4fd744;p=thirdparty%2Fsamba.git lib ldb ldb_key_value: csbuild unused parm ldb_kv Fixes csbuild error. Error: COMPILER_WARNING: lib/ldb/ldb_key_value/ldb_kv_search.c: scope_hint: In function ‘search_func’ lib/ldb/ldb_key_value/ldb_kv_search.c:308:47: warning: unused parameter ‘ldb_kv’ [-Wunused-parameter] Signed-off-by: Gary Lockyer Reviewed-by: Andreas Schneider Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Thu Jun 13 08:27:12 UTC 2019 on sn-devel-184 --- diff --git a/lib/ldb/ldb_key_value/ldb_kv_search.c b/lib/ldb/ldb_key_value/ldb_kv_search.c index bb63ed1ab60..f2d96198151 100644 --- a/lib/ldb/ldb_key_value/ldb_kv_search.c +++ b/lib/ldb/ldb_key_value/ldb_kv_search.c @@ -33,6 +33,7 @@ #include "ldb_kv.h" #include "ldb_private.h" +#include "lib/util/attr.h" /* search the database for a single simple dn. return LDB_ERR_NO_SUCH_OBJECT on record-not-found @@ -305,7 +306,7 @@ int ldb_kv_filter_attrs(struct ldb_context *ldb, /* search function for a non-indexed search */ -static int search_func(struct ldb_kv_private *ldb_kv, +static int search_func(_UNUSED_ struct ldb_kv_private *ldb_kv, struct ldb_val key, struct ldb_val val, void *state)