summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2019-09-16 10:35:49 +0000
committerJeremy Allison <jra@samba.org>2019-09-26 18:41:27 +0000
commit25c92111dcb646f8537d89fc2d091ee3c5753d56 (patch)
tree3e01128c18c9f2848264bd05ba19553f865aebe3 /source3/lib
parent8ea0835a6cbe8721780929b9946de65cd87dc26d (diff)
downloadsamba-25c92111dcb646f8537d89fc2d091ee3c5753d56.tar.gz
s3/lib/netapi: clang: Fix 'Value stored during initialization is never read'
Fixes: source3/lib/netapi/group.c:1383:11: warning: Value stored to ' status' during its initialization is never read <--[clang] NTSTATUS status = NT_STATUS_OK; ^~~~~~ ~~~~~~~~~~~~ samba/source3/lib/netapi/group.c:1521:11: warning: Value stored to ' status' during its initialization is never read <--[clang] NTSTATUS status = NT_STATUS_OK; ^~~~~~ ~~~~~~~~~~~~ samba/source3/lib/netapi/group.c:1718:11: warning: Value stored to ' status' during its initialization is never read <--[clang] NTSTATUS status = NT_STATUS_OK; ^~~~~~ ~~~~~~~~~~~~ 3 warnings generated. Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/netapi/group.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/netapi/group.c b/source3/lib/netapi/group.c
index f4f2dc26b6a..e0b7458e58c 100644
--- a/source3/lib/netapi/group.c
+++ b/source3/lib/netapi/group.c
@@ -1380,7 +1380,7 @@ WERROR NetGroupEnum_r(struct libnetapi_ctx *ctx,
uint32_t returned_size = 0;
NTSTATUS result = NT_STATUS_OK;
- NTSTATUS status = NT_STATUS_OK;
+ NTSTATUS status;
WERROR werr, tmp_werr;
ZERO_STRUCT(connect_handle);
@@ -1518,7 +1518,7 @@ WERROR NetGroupGetUsers_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;
@@ -1715,7 +1715,7 @@ WERROR NetGroupSetUsers_r(struct libnetapi_ctx *ctx,
int i, k;
- NTSTATUS status = NT_STATUS_OK;
+ NTSTATUS status;
NTSTATUS result = NT_STATUS_OK;
WERROR werr;