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"', {