From 0bb013f81ba81e4ea7d2a0c3c41e3c7cbac13316 Mon Sep 17 00:00:00 2001 From: Michael Graeb Date: Tue, 30 May 2023 16:00:55 -0700 Subject: [PATCH] Disable MSVC warning triggered by aws_future macros (#1033) --- include/aws/common/macros.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/aws/common/macros.h b/include/aws/common/macros.h index 0b0b8b667..648e39022 100644 --- a/include/aws/common/macros.h +++ b/include/aws/common/macros.h @@ -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