summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Lockyer <gary@catalyst.net.nz>2019-06-07 14:45:31 +1200
committerAndreas Schneider <asn@cryptomilk.org>2019-06-13 07:16:22 +0000
commit9284cc19d4b25eaab0039b1fceb7b0adb6302107 (patch)
treef156a4c1f8e29c88ad862227a7312d15c048ca2f
parentb78597e1cd0b0509490747f901a26f163a1f6d30 (diff)
downloadsamba-9284cc19d4b25eaab0039b1fceb7b0adb6302107.tar.gz
lib ldb ldb_key_value: csbuild unused parm ldb_kv_timeout
Fixes csbuild errors. Error: COMPILER_WARNING: lib/ldb/ldb_key_value/ldb_kv.c: scope_hint: In function ‘ldb_kv_timeout’ lib/ldb/ldb_key_value/ldb_kv.c:1675:51: warning: unused parameter ‘ev’ [-Wunused-parameter] Error: COMPILER_WARNING: lib/ldb/ldb_key_value/ldb_kv.c:1676:28: warning: unused parameter ‘te’ [-Wunused-parameter] Error: COMPILER_WARNING: lib/ldb/ldb_key_value/ldb_kv.c:1677:22: warning: unused parameter ‘t’ [-Wunused-parameter] Tag the unused variables in ldb_kv_timeout with _UNUSED_ Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andreas Schneider <asn@samba.org>
-rw-r--r--lib/ldb/ldb_key_value/ldb_kv.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/ldb/ldb_key_value/ldb_kv.c b/lib/ldb/ldb_key_value/ldb_kv.c
index 27e65c331da..260087fbfc4 100644
--- a/lib/ldb/ldb_key_value/ldb_kv.c
+++ b/lib/ldb/ldb_key_value/ldb_kv.c
@@ -51,6 +51,7 @@
#include "ldb_kv.h"
#include "ldb_private.h"
+#include "lib/util/attr.h"
/*
prevent memory errors on callbacks
@@ -1669,9 +1670,9 @@ static void ldb_kv_request_done(struct ldb_kv_context *ctx, int error)
req->callback(req, ares);
}
-static void ldb_kv_timeout(struct tevent_context *ev,
- struct tevent_timer *te,
- struct timeval t,
+static void ldb_kv_timeout(_UNUSED_ struct tevent_context *ev,
+ _UNUSED_ struct tevent_timer *te,
+ _UNUSED_ struct timeval t,
void *private_data)
{
struct ldb_kv_context *ctx;