From 6831b6ba6f52dd865ecf09c575e4862f6dd3424b Mon Sep 17 00:00:00 2001 From: Noel Power Date: Thu, 15 Aug 2019 15:32:13 +0100 Subject: [PATCH] s3/rpc_client: clang: Fix 'Value stored during initialization is never read' 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 Reviewed-by: Jeremy Allison --- source3/rpc_client/cli_pipe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index 81b6bfb75bf..78197d99f9c 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -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: -- 2.47.3