From 4363d64249cd21e7da6542c8b817aafdc4ae5771 Mon Sep 17 00:00:00 2001 From: Steve Kim Date: Fri, 4 Oct 2024 11:40:57 -0700 Subject: [PATCH] fix unused error --- source/posix/socket.c | 1 + source/windows/iocp/socket.c | 1 + 2 files changed, 2 insertions(+) diff --git a/source/posix/socket.c b/source/posix/socket.c index c4bfc7963..dfbb77fdf 100644 --- a/source/posix/socket.c +++ b/source/posix/socket.c @@ -663,6 +663,7 @@ static int s_socket_connect( aws_socket_on_connection_result_fn *on_connection_result, aws_socket_retrieve_tls_options_fn *retrieve_tls_options, void *user_data) { + (void)retrieve_tls_options; AWS_ASSERT(event_loop); AWS_ASSERT(!socket->event_loop); diff --git a/source/windows/iocp/socket.c b/source/windows/iocp/socket.c index aef7a73ef..bd7a42e8b 100644 --- a/source/windows/iocp/socket.c +++ b/source/windows/iocp/socket.c @@ -436,6 +436,7 @@ int aws_socket_connect( aws_socket_on_connection_result_fn *on_connection_result, aws_socket_retrieve_tls_options_fn *retrieve_tls_options, void *user_data) { + (void)retrieve_tls_options; struct iocp_socket *socket_impl = socket->impl; if (socket->options.type != AWS_SOCKET_DGRAM) { AWS_ASSERT(on_connection_result);