From ae2e9ce5c36c9e05f785b3fa7be22074fdc4213d Mon Sep 17 00:00:00 2001 From: Noel Power Date: Thu, 5 Sep 2019 14:22:02 +0000 Subject: [PATCH] s3/rpc_client: clang: Fix 'Value stored during initialization is never read' Fixes: source3/rpc_client/cli_lsarpc.c:182: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/rpc_client/cli_lsarpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/rpc_client/cli_lsarpc.c b/source3/rpc_client/cli_lsarpc.c index a093ee2572c..8f064f64a6c 100644 --- a/source3/rpc_client/cli_lsarpc.c +++ b/source3/rpc_client/cli_lsarpc.c @@ -179,7 +179,7 @@ static NTSTATUS dcerpc_lsa_lookup_sids_noalloc(struct dcerpc_binding_handle *h, bool use_lookupsids3, NTSTATUS *presult) { - NTSTATUS status = NT_STATUS_OK; + NTSTATUS status; NTSTATUS result = NT_STATUS_UNSUCCESSFUL; struct lsa_SidArray sid_array; struct lsa_RefDomainList *ref_domains = NULL; -- 2.47.3