From 7cf7753ae43431ca43ec7847075382d18ad04cfb Mon Sep 17 00:00:00 2001 From: Xiting Zhang Date: Thu, 15 May 2025 16:21:09 -0700 Subject: [PATCH] Fix unused parameter warning in win_http_transport.cpp. --- sdk/core/azure-core/src/http/winhttp/win_http_transport.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sdk/core/azure-core/src/http/winhttp/win_http_transport.cpp b/sdk/core/azure-core/src/http/winhttp/win_http_transport.cpp index 6aea60d17..f2f5ea1cd 100644 --- a/sdk/core/azure-core/src/http/winhttp/win_http_transport.cpp +++ b/sdk/core/azure-core/src/http/winhttp/win_http_transport.cpp @@ -1419,6 +1419,10 @@ int64_t _detail::WinHttpRequest::GetContentLength( std::unique_ptr _detail::WinHttpRequest::SendRequestAndGetResponse( HttpMethod requestMethod) { + // Suppress unused parameter warning (C4100). + // Keeping 'requestMethod' in the signature preserves API compatibility. + (void)requestMethod; + // First, use WinHttpQueryHeaders to obtain the size of the buffer. // The call is expected to fail since no destination buffer is provided. DWORD sizeOfHeaders = 0;