From 9c16d8fb246911d7bbd576d7e6bce0c8fb39929f Mon Sep 17 00:00:00 2001 From: Noel Power Date: Tue, 17 Sep 2019 14:20:03 +0000 Subject: [PATCH] s3/rpc_client: clang: Fix 'Value stored during initialization is never read' Fixes: source3/rpc_client/cli_winreg.c:728:11: warning: Value stored to 'status' during its initialization is never read <--[clang] NTSTATUS status = NT_STATUS_OK; ^~~~~~ ~~~~~~~~~~~~ /source3/rpc_client/cli_winreg.c:897:11: warning: Value stored to 'status' during its initialization is never read <--[clang] NTSTATUS status = NT_STATUS_OK; ^~~~~~ ~~~~~~~~~~~~ Signed-off-by: Noel Power Reviewed-by: Jeremy Allison --- source3/rpc_client/cli_winreg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/rpc_client/cli_winreg.c b/source3/rpc_client/cli_winreg.c index 37f349e8694..a51be3682b4 100644 --- a/source3/rpc_client/cli_winreg.c +++ b/source3/rpc_client/cli_winreg.c @@ -725,7 +725,7 @@ NTSTATUS dcerpc_winreg_enumvals(TALLOC_CTX *mem_ctx, WERROR result = WERR_OK; - NTSTATUS status = NT_STATUS_OK; + NTSTATUS status; tmp_ctx = talloc_stackframe(); if (tmp_ctx == NULL) { @@ -894,7 +894,7 @@ NTSTATUS dcerpc_winreg_delete_subkeys_recursive(TALLOC_CTX *mem_ctx, struct policy_handle key_hnd; struct winreg_String wkey = { 0, }; WERROR result = WERR_OK; - NTSTATUS status = NT_STATUS_OK; + NTSTATUS status; uint32_t i; ZERO_STRUCT(key_hnd); -- 2.47.3