mirror of
https://github.com/git/git.git
synced 2026-01-11 21:33:13 +09:00
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>
This commit is contained in:
parent
b9849e4f76
commit
4647f24302
@ -190,7 +190,7 @@ static void socket_perror(const char *func, struct imap_socket *sock, int ret)
|
||||
|
||||
#ifdef NO_OPENSSL
|
||||
static int ssl_socket_connect(struct imap_socket *sock UNUSED,
|
||||
const struct imap_server_conf *cfg,
|
||||
const struct imap_server_conf *cfg UNUSED,
|
||||
int use_tls_only UNUSED)
|
||||
{
|
||||
fprintf(stderr, "SSL requested but SSL support not compiled in\n");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user