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
This commit is contained in:
Ahson Khan 2022-11-28 12:20:00 -08:00 committed by GitHub
parent f587bf9e79
commit 928c9cf6eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,8 @@
#include <mutex>
#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 <wil\resource.h>
#pragma warning(pop)
#include <winhttp.h>

View File

@ -21,6 +21,8 @@
#include <string>
#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 <wil/resource.h> // definitions for wil::unique_cert_chain_context and other RAII type wrappers for Windows types.
#pragma warning(pop)