1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

lib ldb ldb_key_value: csbuild unused parm tdb

Fixes csbuild error.

Error: COMPILER_WARNING:
lib/ldb/ldb_key_value/ldb_kv_index.c: scope_hint: In function
‘ldb_kv_index_traverse_store’
lib/ldb/ldb_key_value/ldb_kv_index.c:779:60: warning: unused parameter
‘tdb’ [-Wunused-parameter]

By tagging the tdb_context parameter in ldb_kv_index_traverse_store as
_UNUSED_

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Gary Lockyer 2019-06-07 14:54:03 +12:00 committed by Andreas Schneider
parent 5081d146bb
commit bf13c17f68

View File

@ -148,6 +148,7 @@ ldb_schema_set_override_GUID_index() must be called.
#include "../ldb_tdb/ldb_tdb.h"
#include "ldb_private.h"
#include "lib/util/binsearch.h"
#include "lib/util/attr.h"
struct dn_list {
unsigned int count;
@ -776,7 +777,7 @@ static int ldb_kv_dn_list_store(struct ldb_module *module,
/*
traverse function for storing the in-memory index entries on disk
*/
static int ldb_kv_index_traverse_store(struct tdb_context *tdb,
static int ldb_kv_index_traverse_store(_UNUSED_ struct tdb_context *tdb,
TDB_DATA key,
TDB_DATA data,
void *state)