1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

lib ldb ldb_key_value: csbuild unused parm ldb

Fixes csbuild error.

Error: COMPILER_WARNING:
lib/ldb/ldb_key_value/ldb_kv_index.c: scope_hint: In function
‘list_intersect’
lib/ldb/ldb_key_value/ldb_kv_index.c:1275:48: warning: unused parameter
‘ldb’ [-Wunused-parameter]

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:57:19 +12:00 committed by Andreas Schneider
parent bf13c17f68
commit c20ca0debe

View File

@ -1273,8 +1273,7 @@ static int ldb_kv_index_dn_leaf(struct ldb_module *module,
list intersection
list = list & list2
*/
static bool list_intersect(struct ldb_context *ldb,
struct ldb_kv_private *ldb_kv,
static bool list_intersect(struct ldb_kv_private *ldb_kv,
struct dn_list *list,
const struct dn_list *list2)
{
@ -1621,7 +1620,7 @@ static int ldb_kv_index_dn_and(struct ldb_module *module,
list->dn = list2->dn;
list->count = list2->count;
found = true;
} else if (!list_intersect(ldb, ldb_kv, list, list2)) {
} else if (!list_intersect(ldb_kv, list, list2)) {
talloc_free(list2);
return LDB_ERR_OPERATIONS_ERROR;
}
@ -2453,8 +2452,7 @@ int ldb_kv_search_indexed(struct ldb_kv_context *ac, uint32_t *match_count)
* and falling back to a full DB scan).
*/
if (ret == LDB_SUCCESS) {
if (!list_intersect(ldb,
ldb_kv,
if (!list_intersect(ldb_kv,
dn_list,
indexed_search_result)) {
talloc_free(indexed_search_result);