From: Daniel Stenberg Date: Mon, 31 Jan 2022 21:47:48 +0000 (+0100) Subject: openldap: fix compiler warning when built without SSL support X-Git-Tag: curl-7_82_0~150 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5236ed0e42d35df1b61e2d35bb64a0c5dfc49f1c;p=thirdparty%2Fcurl.git openldap: fix compiler warning when built without SSL support openldap.c:841:52: error: unused parameter ‘data’ [-Werror=unused-parameter] Closes #8367 --- diff --git a/lib/openldap.c b/lib/openldap.c index 2488d15eeb..6ed513f9fe 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) {