Fixing a Windows compiler warning in src/client/windows/crash_generation/minidump_generator.cc

http://breakpad.appspot.com/432002/



git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1014 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
ivan.penkov@gmail.com 2012-08-17 01:41:05 +00:00
parent d7de392b05
commit e050c46a53
3 changed files with 4 additions and 6 deletions

View file

@ -511,7 +511,6 @@
'_CRT_SECURE_NO_DEPRECATE',
'_CRT_NONSTDC_NO_WARNINGS',
'_CRT_NONSTDC_NO_DEPRECATE',
'_SCL_SECURE_NO_DEPRECATE',
],
'msvs_disabled_warnings': [4800],
'msvs_settings': {

View file

@ -43,7 +43,6 @@
'_CRT_SECURE_NO_DEPRECATE',
'_CRT_NONSTDC_NO_WARNINGS',
'_CRT_NONSTDC_NO_DEPRECATE',
'_SCL_SECURE_NO_DEPRECATE',
],
'msvs_disabled_warnings': [4800],
'msvs_settings': {

View file

@ -33,6 +33,7 @@
#include <avrfsdk.h>
#include <algorithm>
#include <iterator>
#include <list>
#include <vector>
@ -41,9 +42,6 @@
using std::wstring;
// Disable C4996: 'std::copy': Function call with parameters that may be unsafe.
#pragma warning( disable : 4996 )
namespace {
// A helper class used to collect handle operations data. Unlike
@ -177,7 +175,9 @@ bool HandleTraceData::CollectHandleData(
stream_data->Reserved = 0;
std::copy(operations_.begin(),
operations_.end(),
reinterpret_cast<AVRF_HANDLE_OPERATION*>(stream_data + 1));
stdext::checked_array_iterator<AVRF_HANDLE_OPERATION*>(
reinterpret_cast<AVRF_HANDLE_OPERATION*>(stream_data + 1),
operations_.size()));
return true;
}