mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3/lib/netapi: clang: Fix 'Value stored during initialization is never read'
Fixes: source3/lib/netapi/user.c:1290:11: warning: Value stored to 'status' during its initialization is never read <--[clang] NTSTATUS status = NT_STATUS_OK; ^~~~~~ ~~~~~~~~~~~~ source3/lib/netapi/user.c:1610:11: warning: Value stored to 'status' during its initialization is never read <--[clang] NTSTATUS status = NT_STATUS_OK; ^~~~~~ ~~~~~~~~~~~~ source3/lib/netapi/user.c:2990:11: warning: Value stored to 'status' during its initialization is never read <--[clang] NTSTATUS status = NT_STATUS_OK; ^~~~~~ ~~~~~~~~~~~~ source3/lib/netapi/user.c:3184:11: warning: Value stored to 'status' during its initialization is never read <--[clang] NTSTATUS status = NT_STATUS_OK; ^~~~~~ ~~~~~~~~~~~~ source3/lib/netapi/user.c:3522: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>
This commit is contained in:
parent
9c16d8fb24
commit
6ae0fd5a34
@ -1293,7 +1293,7 @@ WERROR NetUserEnum_r(struct libnetapi_ctx *ctx,
|
||||
int i;
|
||||
uint32_t entries_read = 0;
|
||||
|
||||
NTSTATUS status = NT_STATUS_OK;
|
||||
NTSTATUS status;
|
||||
NTSTATUS result = NT_STATUS_OK;
|
||||
WERROR werr;
|
||||
struct dcerpc_binding_handle *b = NULL;
|
||||
@ -1613,7 +1613,7 @@ WERROR NetQueryDisplayInformation_r(struct libnetapi_ctx *ctx,
|
||||
uint32_t total_size = 0;
|
||||
uint32_t returned_size = 0;
|
||||
|
||||
NTSTATUS status = NT_STATUS_OK;
|
||||
NTSTATUS status;
|
||||
NTSTATUS result = NT_STATUS_OK;
|
||||
WERROR werr;
|
||||
WERROR werr_tmp;
|
||||
@ -2993,7 +2993,7 @@ WERROR NetUserGetGroups_r(struct libnetapi_ctx *ctx,
|
||||
int i;
|
||||
uint32_t entries_read = 0;
|
||||
|
||||
NTSTATUS status = NT_STATUS_OK;
|
||||
NTSTATUS status;
|
||||
NTSTATUS result = NT_STATUS_OK;
|
||||
WERROR werr;
|
||||
struct dcerpc_binding_handle *b = NULL;
|
||||
@ -3187,7 +3187,7 @@ WERROR NetUserSetGroups_r(struct libnetapi_ctx *ctx,
|
||||
|
||||
int i, k;
|
||||
|
||||
NTSTATUS status = NT_STATUS_OK;
|
||||
NTSTATUS status;
|
||||
NTSTATUS result = NT_STATUS_OK;
|
||||
WERROR werr;
|
||||
struct dcerpc_binding_handle *b = NULL;
|
||||
@ -3525,7 +3525,7 @@ WERROR NetUserGetLocalGroups_r(struct libnetapi_ctx *ctx,
|
||||
int i;
|
||||
uint32_t entries_read = 0;
|
||||
|
||||
NTSTATUS status = NT_STATUS_OK;
|
||||
NTSTATUS status;
|
||||
NTSTATUS result = NT_STATUS_OK;
|
||||
WERROR werr;
|
||||
struct dcerpc_binding_handle *b = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user