]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/libads: clang: Fix 'Value stored during initialization is never read'
authorNoel Power <noel.power@suse.com>
Fri, 6 Sep 2019 14:50:37 +0000 (14:50 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 26 Sep 2019 18:41:27 +0000 (18:41 +0000)
Fixes:

source3/libads/ldap_utils.c:52:13: warning: Value stored to 'status' during its initialization is never read <--[clang]
        ADS_STATUS status = ADS_SUCCESS;
                   ^~~~~~   ~~~~~~~~~~~
1 warning generated.

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

index 0c37b06500cfd8ad0c64ffd968206fef245ca021..c9039684bf00508903f4d41420841e7026bd9b45 100644 (file)
@@ -49,7 +49,7 @@ static ADS_STATUS ads_do_search_retry_internal(ADS_STRUCT *ads, const char *bind
                                               const char **attrs, void *args,
                                               LDAPMessage **res)
 {
-       ADS_STATUS status = ADS_SUCCESS;
+       ADS_STATUS status;
        int count = 3;
        char *bp;