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

Issue 1408123006: Tidy up to enable C4800 on Windows (Closed)

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

Description

Tidy up to enable C4800 on Windows Fixes two incorrect usages of ssize_t/off_t being implicitly converted to bool. As such, I think it's worth the cost of the additional !! on BOOL returning Win32 functions. R=mark@chromium.org Committed: https://chromium.googlesource.com/crashpad/crashpad/+/4b780ba04001fa276a9690a31bf2544d1d28569e

Patch Set 1 #

Patch Set 2 : . #

Total comments: 10

Patch Set 3 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -19 lines) Patch
M client/crash_report_database_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M client/crashpad_client_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M client/settings.cc View 1 2 1 chunk +5 lines, -3 lines 0 comments Download
M minidump/minidump_file_writer.cc View 1 chunk +1 line, -1 line 0 comments Download
M minidump/minidump_module_writer_test.cc View 1 chunk +1 line, -2 lines 0 comments Download
M snapshot/cpu_context.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M snapshot/win/system_snapshot_win.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M util/file/file_io_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M util/win/critical_section_with_debug_info.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M util/win/exception_handler_server.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M util/win/process_info.cc View 1 chunk +1 line, -1 line 0 comments Download
M util/win/process_info_test.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (1 generated)
scottmg
5 years, 2 months ago (2015-10-22 21:15:11 UTC) #1
Mark Mentovai
LGTM https://codereview.chromium.org/1408123006/diff/20001/client/crashpad_client_win.cc File client/crashpad_client_win.cc (right): https://codereview.chromium.org/1408123006/diff/20001/client/crashpad_client_win.cc#newcode232 client/crashpad_client_win.cc:232: bool set_event_result = !!SetEvent(g_signal_non_crash_dump); Ugly, but well, at ...
5 years, 2 months ago (2015-10-22 21:22:40 UTC) #3
scottmg
https://codereview.chromium.org/1408123006/diff/20001/client/settings.cc File client/settings.cc (right): https://codereview.chromium.org/1408123006/diff/20001/client/settings.cc#newcode256 client/settings.cc:256: read_result = ReadFile(handle, out_data, sizeof(*out_data)) >= 0; On 2015/10/22 ...
5 years, 2 months ago (2015-10-22 21:28:28 UTC) #4
scottmg
https://codereview.chromium.org/1408123006/diff/20001/client/settings.cc File client/settings.cc (right): https://codereview.chromium.org/1408123006/diff/20001/client/settings.cc#newcode256 client/settings.cc:256: read_result = ReadFile(handle, out_data, sizeof(*out_data)) >= 0; On 2015/10/22 ...
5 years, 2 months ago (2015-10-22 21:29:54 UTC) #5
scottmg
5 years, 2 months ago (2015-10-22 21:32:17 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
4b780ba04001fa276a9690a31bf2544d1d28569e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698