mirror of
https://github.com/curl/curl.git
synced 2026-05-30 06:57:28 +03:00
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
This commit is contained in:
parent
0e37b42dc9
commit
e0866dd054
1 changed files with 2 additions and 0 deletions
|
|
@ -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 "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue