Skip to content

Commit

Permalink
Disable warning C6387 coming from wil in win_http_transport due to SA…
Browse files Browse the repository at this point in the history
…L 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
  • Loading branch information
ahsonkhan authored Nov 28, 2022
1 parent f587bf9 commit 928c9cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sdk/core/azure-core/src/http/winhttp/win_http_request.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 2 additions & 0 deletions sdk/core/azure-core/src/http/winhttp/win_http_transport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 928c9cf

Please sign in to comment.