]> 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, 5 Sep 2019 14:22:02 +0000 (14:22 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 26 Sep 2019 18:41:27 +0000 (18:41 +0000)
Fixes:

source3/rpc_client/cli_lsarpc.c:182:11: warning: Value stored to 'status' during its initialization is never read <--[clang]
        NTSTATUS status = NT_STATUS_OK;
                 ^~~~~~   ~~~~~~~~~~~~
1 warning generated.

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

index a093ee2572c9c36be86be3a17954ba9717b2f893..8f064f64a6c0b2d94a31baaab0d245823772cd44 100644 (file)
@@ -179,7 +179,7 @@ static NTSTATUS dcerpc_lsa_lookup_sids_noalloc(struct dcerpc_binding_handle *h,
                                               bool use_lookupsids3,
                                               NTSTATUS *presult)
 {
-       NTSTATUS status = NT_STATUS_OK;
+       NTSTATUS status;
        NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
        struct lsa_SidArray sid_array;
        struct lsa_RefDomainList *ref_domains = NULL;