From b0394744cc41a846eb9a79ccc73cd2992790ed42 Mon Sep 17 00:00:00 2001 From: Bruce Dawson Date: Mon, 14 Dec 2015 20:01:05 -0500 Subject: [PATCH] Fix some VS 2015 warnings Fix some warnings when compiling crashpad with VC++ 2015 Update 1. Warning 4302 occurs if you convert from a pointer to a . --- snapshot/win/pe_image_reader.cc | 4 +++- util/util.gyp | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/snapshot/win/pe_image_reader.cc b/snapshot/win/pe_image_reader.cc index 9abf0b13..4ae745fc 100644 --- a/snapshot/win/pe_image_reader.cc +++ b/snapshot/win/pe_image_reader.cc @@ -200,8 +200,10 @@ bool PEImageReader::VSFixedFileInfo( WinVMAddress address; WinVMSize size; + const uint16_t vs_file_info_type = static_cast( + reinterpret_cast(VS_FILE_INFO)); // RT_VERSION if (!resource_reader.FindResourceByID( - reinterpret_cast(VS_FILE_INFO), // RT_VERSION + vs_file_info_type, VS_VERSION_INFO, MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL), &address, diff --git a/util/util.gyp b/util/util.gyp index 83f2c559..7ef9c4ee 100644 --- a/util/util.gyp +++ b/util/util.gyp @@ -259,6 +259,7 @@ }, 'msvs_disabled_warnings': [ 4201, # nonstandard extension used : nameless struct/union. + 4577, # 'noexcept' used with no exception handling mode specified ], 'conditions': [ ['target_arch=="ia32"', {