Skip to content

Commit

Permalink
Disable MSVC warning triggered by aws_future macros (#1033)
Browse files Browse the repository at this point in the history
  • Loading branch information
graebm authored May 30, 2023
1 parent f77b55d commit 0bb013f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/aws/common/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
# define AWS_PUSH_SANE_WARNING_LEVEL \
__pragma(warning(push)) \
__pragma(warning(disable : 4820)) /* padding added to struct */ \
__pragma(warning(disable : 4514)) /* unreferenced inline function has been removed */
__pragma(warning(disable : 4514)) /* unreferenced inline function has been removed */ \
__pragma(warning(disable : 5039)) /* reference to potentially throwing function passed to extern C function */
# define AWS_POP_SANE_WARNING_LEVEL __pragma(warning(pop))
#else
# define AWS_PUSH_SANE_WARNING_LEVEL
Expand Down

0 comments on commit 0bb013f

Please sign in to comment.