Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(84)

Issue 432002: Fixing a Windows compiler warning in src/client/windows/crash_generation/minidump_generator.cc (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by Ivan Penkov
Modified:
12 years, 3 months ago
Base URL:
http://google-breakpad.googlecode.com/svn/trunk/src/
Visibility:
Public.

Description

Apparently, a new Windows compiler warning (C4996: 'function': was declared
deprecated) was recently introduced in
src/client/windows/crash_generation/minidump_generator.cc.

The source file already contains a #pragma warning(disable) to disable the
warning, but the #pragma is not put on the right place.  The warning must be
disabled for both the caller and the function definition (which is in the
include file).  A possible workaround for current users of Google-breakpad is to
disable this particular warning at the project level however this is not ideal.

Instead of properly suppressing the warning I decided to just go ahead and fix
it.

Thanks,
-Ivan

Patch Set 1 #

Patch Set 2 : Restoring a missing comma #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M client/windows/build/common.gypi View 1 1 chunk +0 lines, -1 line 0 comments Download
M client/windows/build/external_code.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M client/windows/crash_generation/minidump_generator.cc View 3 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 5
Ivan Penkov
12 years, 3 months ago #1
Ivan Penkov
.
12 years, 3 months ago #2
Mark Mentovai
LGTM Does this mean that Microsoft considers the use of a standard form of std::copy ...
12 years, 3 months ago #3
Cris Neckar
LGTM
12 years, 3 months ago #4
Ivan Penkov
12 years, 3 months ago #5
On 2012/08/16 12:45:04, Mark Mentovai wrote:
> LGTM
> 
> Does this mean that Microsoft considers the use of a standard form of
std::copy
> deprecated unless combined with a nonstandard extension? This is like _s all
> over again. Great for cross-platform portability.

It looks like it.  I just followed the advice they give on MSDN for resolution
of these warnings and this is what they suggest.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted