From: Viktor Szakats Date: Fri, 10 May 2024 15:03:26 +0000 (+0200) Subject: ldap: fix unused variables (seen on OmniOS) X-Git-Tag: curl-8_8_0~91 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e0866dd054d77b6ae2edc8ace928a4260c1f963d;p=thirdparty%2Fcurl.git ldap: fix unused variables (seen on OmniOS) ``` ../../lib/ldap.c: In function 'ldap_do': ../../lib/ldap.c:380:11: error: unused variable 'ldap_ca' [-Werror=unused-variable] 380 | char *ldap_ca = conn->ssl_config.CAfile; | ^~~~~~~ ../../lib/ldap.c:379:9: error: unused variable 'ldap_option' [-Werror=unused-variable] 379 | int ldap_option; | ^~~~~~~~~~~ ``` Ref: https://github.com/curl/curl/actions/runs/9033564377/job/24824192730#step:3:6059 Ref: #13583 Closes #13588 --- diff --git a/lib/ldap.c b/lib/ldap.c index 0afc32c92f..678b4d5af6 100644 --- a/lib/ldap.c +++ b/lib/ldap.c @@ -485,6 +485,8 @@ static CURLcode ldap_do(struct Curl_easy *data, bool *done) } */ #else + (void)ldap_option; + (void)ldap_ca; /* we should probably never come up to here since configure should check in first place if we can support LDAP SSL/TLS */ failf(data, "LDAP local: SSL/TLS not supported with this version "