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;