Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Issue 1527803002: Fix some VS 2015 warnings (Closed)

Created:
5 years ago by brucedawson
Modified:
5 years ago
Reviewers:
Mark Mentovai, scottmg
CC:
crashpad-dev_chromium.org
Base URL:
https://chromium.googlesource.com/crashpad/crashpad.git@master
Target Ref:
refs/heads/master
Project:
crashpad
Visibility:
Public.

Description

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 <sizeof(void*) integer in one cast, because this often indicates an accidental pointer truncation which can be a bug in 64-bit builds. Warning 4577 warns that noexcept will not be enforced, but we don't want it to be enforced anyway, so I disabled it. The full warning is: warning C4577: 'noexcept' used with no exception handling mode specified termination on exception is not guaranteed. Specify /EHsc BUG=440500 R=mark@chromium.org Committed: https://chromium.googlesource.com/crashpad/crashpad/+/b0394744cc41a846eb9a79ccc73cd2992790ed42

Patch Set 1 #

Patch Set 2 : Suppress/fix two VS 2015 warnings #

Total comments: 7

Patch Set 3 : Remove comment and rename variable #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M snapshot/win/pe_image_reader.cc View 1 2 1 chunk +3 lines, -1 line 1 comment Download
M util/util.gyp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
brucedawson
If one of you could take a look and approve that would be appreciated. There ...
5 years ago (2015-12-14 22:46:49 UTC) #3
Mark Mentovai
https://codereview.chromium.org/1527803002/diff/20001/snapshot/win/pe_image_reader.cc File snapshot/win/pe_image_reader.cc (right): https://codereview.chromium.org/1527803002/diff/20001/snapshot/win/pe_image_reader.cc#newcode203 snapshot/win/pe_image_reader.cc:203: // Do two casts to make it explicit that ...
5 years ago (2015-12-14 23:51:30 UTC) #4
brucedawson
https://codereview.chromium.org/1527803002/diff/20001/snapshot/win/pe_image_reader.cc File snapshot/win/pe_image_reader.cc (right): https://codereview.chromium.org/1527803002/diff/20001/snapshot/win/pe_image_reader.cc#newcode203 snapshot/win/pe_image_reader.cc:203: // Do two casts to make it explicit that ...
5 years ago (2015-12-15 00:00:57 UTC) #5
Mark Mentovai
LGTM https://codereview.chromium.org/1527803002/diff/20001/util/util.gyp File util/util.gyp (right): https://codereview.chromium.org/1527803002/diff/20001/util/util.gyp#newcode262 util/util.gyp:262: 4577, # 'noexcept' used with no exception handling ...
5 years ago (2015-12-15 00:58:56 UTC) #6
Mark Mentovai
5 years ago (2015-12-15 01:01:11 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
b0394744cc41a846eb9a79ccc73cd2992790ed42 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698