From 928c9cf6ebf0c405bf4686230a9f138c8644ba6b Mon Sep 17 00:00:00 2001 From: Ahson Khan Date: Mon, 28 Nov 2022 12:20:00 -0800 Subject: [PATCH] Disable warning C6387 coming from wil in win_http_transport due to SAL annotation (#4132) * Disable warning C6387 coming from wil in win_http_transport * Disable warning C6387 coming from wil in win_http_transport header * Clang format fix for header file * Clang format fix for source file --- sdk/core/azure-core/src/http/winhttp/win_http_request.hpp | 2 ++ sdk/core/azure-core/src/http/winhttp/win_http_transport.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/sdk/core/azure-core/src/http/winhttp/win_http_request.hpp b/sdk/core/azure-core/src/http/winhttp/win_http_request.hpp index d067e103c..2bf5601b2 100644 --- a/sdk/core/azure-core/src/http/winhttp/win_http_request.hpp +++ b/sdk/core/azure-core/src/http/winhttp/win_http_request.hpp @@ -17,6 +17,8 @@ #include #pragma warning(push) #pragma warning(disable : 6553) +#pragma warning(disable : 6387) // An argument in result_macros.h may be '0', for the function + // 'GetProcAddress'. #include #pragma warning(pop) #include 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 79a968e6b..d19375e08 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 @@ -21,6 +21,8 @@ #include #pragma warning(push) #pragma warning(disable : 6553) +#pragma warning(disable : 6387) // An argument in result_macros.h may be '0', for the function + // 'GetProcAddress'. #include // definitions for wil::unique_cert_chain_context and other RAII type wrappers for Windows types. #pragma warning(pop)