From 6055134330d9e4226deb298c506dc6f792bf5d33 Mon Sep 17 00:00:00 2001 From: Noel Power Date: Thu, 15 Aug 2019 14:16:52 +0100 Subject: [PATCH] s3/groupdb: clang: Fix 'Value stored during its initialization is never read' Fixes: ource3/groupdb/mapping.c:648: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 --- source3/groupdb/mapping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/groupdb/mapping.c b/source3/groupdb/mapping.c index 1e25c5637dc..ed57955edc9 100644 --- a/source3/groupdb/mapping.c +++ b/source3/groupdb/mapping.c @@ -645,7 +645,7 @@ NTSTATUS pdb_default_set_aliasinfo(struct pdb_methods *methods, const struct dom_sid *sid, struct acct_info *info) { - NTSTATUS status = NT_STATUS_OK; + NTSTATUS status; GROUP_MAP *map; map = talloc_zero(NULL, GROUP_MAP); -- 2.47.3