From: Noel Power Date: Thu, 15 Aug 2019 14:32:13 +0000 (+0100) Subject: s3/rpc_client: clang: Fix 'Value stored during initialization is never read' X-Git-Tag: talloc-2.3.1~564 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6831b6ba6f52dd865ecf09c575e4862f6dd3424b;p=thirdparty%2Fsamba.git 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 --- 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: