s3/rpc_client: clang: Fix 'Value stored during initialization is never read'
authorNoel Power <noel.power@suse.com>
Tue, 17 Sep 2019 14:20:03 +0000 (14:20 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 26 Sep 2019 18:41:27 +0000 (18:41 +0000)
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 <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpc_client/cli_winreg.c

index 37f349e8694d1fb4d12dc93750d65453eb6b41d3..a51be3682b40ccccc73717dd19d7919fad1fc4f7 100644 (file)
@@ -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);