]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ldap: fix unused variables (seen on OmniOS)
authorViktor Szakats <commit@vsz.me>
Fri, 10 May 2024 15:03:26 +0000 (17:03 +0200)
committerViktor Szakats <commit@vsz.me>
Fri, 10 May 2024 21:11:55 +0000 (23:11 +0200)
```
../../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

lib/ldap.c

index 0afc32c92fb5f0890850fbd0ca33fb19dabd7b69..678b4d5af61851d7923ae4aa9b0d1c1b1f646905 100644 (file)
@@ -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 "