]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
openldap: fix compiler warning when built without SSL support
authorDaniel Stenberg <daniel@haxx.se>
Mon, 31 Jan 2022 21:47:48 +0000 (22:47 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 1 Feb 2022 08:14:35 +0000 (09:14 +0100)
openldap.c:841:52: error: unused parameter ‘data’ [-Werror=unused-parameter]

Closes #8367

lib/openldap.c

index 2488d15eeb81c2b686f663d65255c4a709637f02..6ed513f9fe710e201b54540b676d2d02d2b2baf7 100644 (file)
@@ -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) {