Skip to content

Commit 4647f24

Browse files
peffgitster
authored andcommitted
imap-send: mark unused parameter in ssl_socket_connect() fallback
Commit cea1ff7 (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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b9849e4 commit 4647f24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imap-send.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ static void socket_perror(const char *func, struct imap_socket *sock, int ret)
190190

191191
#ifdef NO_OPENSSL
192192
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,
194194
int use_tls_only UNUSED)
195195
{
196196
fprintf(stderr, "SSL requested but SSL support not compiled in\n");

0 commit comments

Comments
 (0)