]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/rpc_client: clang: Fix 'Value stored during initialization is never read'
authorNoel Power <noel.power@suse.com>
Thu, 15 Aug 2019 14:32:13 +0000 (15:32 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 26 Sep 2019 18:41:26 +0000 (18:41 +0000)
Fixes:

source3/rpc_client/cli_pipe.c:397:11: warning: Value stored to 'ret' during its initialization is never read <--[clang]
        NTSTATUS ret = NT_STATUS_OK;
                 ^~~   ~~~~~~~~~~~~

source3/rpc_client/cli_pipe.c:1234:11: warning: Value stored to 'ret' during its initialization is never read <--[clang]
        NTSTATUS ret = NT_STATUS_OK;
                 ^~~   ~~~~~~~~~~~~

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpc_client/cli_pipe.c

index 81b6bfb75bf5f522083f73d3215c3dd2846b44fb..78197d99f9ce844fb962b5517cd4f27e0edcdfee 100644 (file)
@@ -394,7 +394,7 @@ static NTSTATUS cli_pipe_validate_current_pdu(TALLOC_CTX *mem_ctx,
 {
        const struct dcerpc_response *r = NULL;
        DATA_BLOB tmp_stub = data_blob_null;
-       NTSTATUS ret = NT_STATUS_OK;
+       NTSTATUS ret;
 
        /*
         * Point the return values at the real data including the RPC
@@ -1231,7 +1231,7 @@ static NTSTATUS create_rpc_bind_req(TALLOC_CTX *mem_ctx,
 {
        DATA_BLOB auth_token = data_blob_null;
        DATA_BLOB auth_info = data_blob_null;
-       NTSTATUS ret = NT_STATUS_OK;
+       NTSTATUS ret;
 
        switch (auth->auth_type) {
        case DCERPC_AUTH_TYPE_NONE: