From 5236ed0e42d35df1b61e2d35bb64a0c5dfc49f1c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 31 Jan 2022 22:47:48 +0100 Subject: [PATCH] openldap: fix compiler warning when built without SSL support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit openldap.c:841:52: error: unused parameter ‘data’ [-Werror=unused-parameter] Closes #8367 --- lib/openldap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/openldap.c b/lib/openldap.c index 2488d15ee..6ed513f9f 100644 --- a/lib/openldap.c +++ b/lib/openldap.c @@ -844,6 +844,9 @@ static CURLcode oldap_disconnect(struct Curl_easy *data, { struct ldapconninfo *li = conn->proto.ldapc; (void) dead_connection; +#ifndef USE_SSL + (void)data; +#endif if(li) { if(li->ld) {