Skip to content

ldap: fix unused variables (seen on OmniOS) - #13588

Closed
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:ldap-unused-omnios
Closed

ldap: fix unused variables (seen on OmniOS)#13588
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:ldap-unused-omnios

Conversation

@vszakats

@vszakats vszakats commented May 10, 2024

Copy link
Copy Markdown
Member
../../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 might be an undesired build configuration, or possibly incomplete autotools (LDAP) feature detection. Nevertheless it came up in a bare, default build on OmniOS, so I figure it's useful to fix it.

```
../../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: curl#13583
Closes #xxxxx
@vszakats vszakats added the build label May 10, 2024
@bagder bagder added the LDAP label May 10, 2024
@vszakats vszakats closed this in e0866dd May 10, 2024
@vszakats
vszakats deleted the ldap-unused-omnios branch May 10, 2024 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants