]> git.ipfire.org Git - thirdparty/samba.git/commit
s3/lib/netapi: clang: Fix 'Value stored during initialization is never read'
authorNoel Power <noel.power@suse.com>
Mon, 16 Sep 2019 10:43:54 +0000 (10:43 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 26 Sep 2019 18:41:27 +0000 (18:41 +0000)
commita3b9986fac270797be4dbd3d453add9d2107e953
tree00d16518c87b15315fb63c4b272b374272d09e08
parent25c92111dcb646f8537d89fc2d091ee3c5753d56
s3/lib/netapi: clang: Fix 'Value stored during initialization is never read'

Fixes:

source3/lib/netapi/getdc.c:173:11: warning: Value stored to 'status' during its initialization is never read <--[clang]
        NTSTATUS status = NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND;
                 ^~~~~~   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

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