From 3b43daaccbb80824d8da10c84306ebf99268ec01 Mon Sep 17 00:00:00 2001 From: Noel Power Date: Tue, 18 Jun 2019 10:12:49 +0000 Subject: [PATCH] lib/ldb/common: clang: Fix Value stored to 'ret' is never read warning Fixes: lib/ldb/common/ldb.c:1091:3: warning: Value stored to 'ret' is never read <--[clang] ret = 0; ^ ~ 1 warning generated. Signed-off-by: Noel Power Reviewed-by: Gary Lockyer --- lib/ldb/common/ldb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/ldb/common/ldb.c b/lib/ldb/common/ldb.c index 44a487ba987..b9f5164c4e9 100644 --- a/lib/ldb/common/ldb.c +++ b/lib/ldb/common/ldb.c @@ -1088,7 +1088,6 @@ static int lock_search(struct ldb_module *lock_module, struct ldb_request *req) if (ret == LDB_ERR_UNSUPPORTED_CRITICAL_EXTENSION) { /* We might be talking LDAP */ ldb_reset_err_string(ldb); - ret = 0; TALLOC_FREE(lock_context); return ldb_next_request(lock_module, req); -- 2.47.3