Git fork

imap-send: mark unused parameter in ssl_socket_connect() fallback

Commit cea1ff7f1f (imap-send: drop global `imap_server_conf` variable,
2024-06-07) added an imap_server_conf parameter to several functions.
But when compiled with NO_OPENSSL, the ssl_socket_connect() fallback
just returns immediately, so its parameters all need to be annotated to
avoid triggering -Wunused-parameter.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

authored by

Jeff King and committed by
Junio C Hamano
4647f243 b9849e4f

+1 -1
+1 -1
imap-send.c
··· 190 190 191 191 #ifdef NO_OPENSSL 192 192 static int ssl_socket_connect(struct imap_socket *sock UNUSED, 193 - const struct imap_server_conf *cfg, 193 + const struct imap_server_conf *cfg UNUSED, 194 194 int use_tls_only UNUSED) 195 195 { 196 196 fprintf(stderr, "SSL requested but SSL support not compiled in\n");