From: Martin Schwenke Date: Wed, 29 May 2019 09:05:49 +0000 (+1000) Subject: ctdb-daemon: Attempt to silence CID 1357985 (Unchecked return value) X-Git-Tag: ldb-2.0.5~465 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b1d83fb3e88acfdfe00f06e950185ed03fee624f;p=thirdparty%2Fsamba.git ctdb-daemon: Attempt to silence CID 1357985 (Unchecked return value) Yes, the other callers check the return value of ctdb_lockdb_mark(). However, this is called in a void function and ctdb_lockdb_mark() has already printed any error message. All we can do is explicitly ignore the return value. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/server/ctdb_lock.c b/ctdb/server/ctdb_lock.c index a559e244471..d42d47af85f 100644 --- a/ctdb/server/ctdb_lock.c +++ b/ctdb/server/ctdb_lock.c @@ -255,7 +255,7 @@ static void process_callbacks(struct lock_context *lock_ctx, bool locked) break; case LOCK_DB: - ctdb_lockdb_mark(lock_ctx->ctdb_db); + (void)ctdb_lockdb_mark(lock_ctx->ctdb_db); break; } }