[sentry-native] Disable warning C5105 (#14349)

This commit is contained in:
Lily 2020-11-06 05:55:35 +08:00 committed by GitHub
parent 9032255d41
commit 68dae46cb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Source: sentry-native
Version: 0.4.3
Port-Version: 1
Homepage: https://sentry.io/
Description: Sentry SDK for C, C++ and native applications.
Build-Depends: curl (!windows)

View File

@ -0,0 +1,12 @@
diff --git a/external/crashpad/third_party/zlib/zlib/x86.c b/external/crashpad/third_party/zlib/zlib/x86.c
index e56fe8b..902e373 100644
--- a/external/crashpad/third_party/zlib/zlib/x86.c
+++ b/external/crashpad/third_party/zlib/zlib/x86.c
@@ -8,6 +8,7 @@
* For conditions of distribution and use, see copyright notice in zlib.h
*/
+#pragma warning(disable : 5105)
#include "x86.h"
#include "zutil.h"

View File

@ -9,6 +9,7 @@ vcpkg_download_distfile(ARCHIVE
vcpkg_extract_source_archive_ex(
OUT_SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE}
PATCHES fix-warningC5105.patch
NO_REMOVE_ONE_LEVEL
)