From: Noel Power Date: Thu, 15 Aug 2019 14:29:03 +0000 (+0100) Subject: s3/groupdb: clang: 'Value stored during its initialization is never read' X-Git-Tag: talloc-2.3.1~565 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=368d0cecc0bc859e321335f46b22d4334e092da1;p=thirdparty%2Fsamba.git s3/groupdb: clang: 'Value stored during its initialization is never read' Fixes: source3/groupdb/mapping_tdb.c:460:11: warning: Value stored to 'status' during its initialization is never read <--[clang] NTSTATUS status = NT_STATUS_OK; ^~~~~~ ~~~~~~~~~~~~ 1 warning generated. Signed-off-by: Noel Power Reviewed-by: Jeremy Allison --- diff --git a/source3/groupdb/mapping_tdb.c b/source3/groupdb/mapping_tdb.c index b7ff724ba05..7f6ae4e65e4 100644 --- a/source3/groupdb/mapping_tdb.c +++ b/source3/groupdb/mapping_tdb.c @@ -457,7 +457,7 @@ static NTSTATUS one_alias_membership(const struct dom_sid *member, char *string_sid; TDB_DATA dbuf; const char *p; - NTSTATUS status = NT_STATUS_OK; + NTSTATUS status; TALLOC_CTX *frame = talloc_stackframe(); slprintf(key, sizeof(key), "%s%s", MEMBEROF_PREFIX,