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

Issue 2081007: Enable warning 4389 as an error on windows builds. This will make... (Closed)

Created:
10 years, 7 months ago by Mike Belshe
Modified:
9 years, 5 months ago
CC:
chromium-reviews, ncarter (slow), ben+cc_chromium.org, Erik does not do reviews, idana, cbentzel+watch_chromium.org, brettw-cc_chromium.org, Aaron Boodman, pam+watch_chromium.org, Paweł Hajdan Jr., kuchhal, darin-cc_chromium.org, amit, tim (not reviewing)
Visibility:
Public.

Description

Enable warning 4389 as an error on windows builds. This will make windows builds more similar to linux/mac, which already treat signed/ unsigned equality comparisons as warnings (and hence errors). BUG=44471 TEST=none

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Total comments: 111

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 5

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Total comments: 2

Patch Set 11 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -158 lines) Patch
M app/os_exchange_data_provider_win.cc View 1 2 3 4 5 6 4 chunks +5 lines, -6 lines 0 comments Download
M app/win/window_impl.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M base/crypto/scoped_capi_types.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M base/event_trace_consumer_win_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M base/event_trace_controller_win_unittest.cc View 1 2 3 4 5 6 3 chunks +6 lines, -6 lines 0 comments Download
M base/event_trace_provider_win_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M base/file_util_win.cc View 1 2 3 4 5 6 2 chunks +6 lines, -10 lines 0 comments Download
M base/iat_patch.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M base/lock_impl_win.cc View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M base/scoped_bstr_win_unittest.cc View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M base/thread_local.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M build/common.gypi View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/app/chrome_dll_main.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/automation/ui_controls_win.cc View 1 2 3 4 5 6 3 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/debugger/devtools_remote_listen_socket_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_uitest.cc View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/importer/importer_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/syncable/syncable.cc View 1 2 3 4 5 6 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/views/select_profile_dialog.cc View 1 2 3 4 5 6 4 chunks +9 lines, -9 lines 0 comments Download
M chrome_frame/chrome_active_document.cc View 1 2 3 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M chrome_frame/chrome_frame_activex.cc View 1 2 3 4 5 6 1 chunk +5 lines, -5 lines 0 comments Download
M chrome_frame/chrome_launcher.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome_frame/function_stub_unittest.cc View 1 2 3 4 5 6 2 chunks +6 lines, -4 lines 0 comments Download
M chrome_frame/html_utils.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -6 lines 0 comments Download
M chrome_frame/test/chrome_frame_test_utils.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome_frame/test/exception_barrier_unittest.cc View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M chrome_frame/test/html_util_unittests.cc View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M chrome_frame/test/perf/chrome_frame_perftest.cc View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M chrome_frame/test/util_unittests.cc View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M chrome_frame/urlmon_url_request.cc View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M gfx/icon_util.cc View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M net/base/listen_socket_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/network_change_notifier_win.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M net/tools/dump_cache/cache_dumper.cc View 1 2 3 4 5 6 3 chunks +6 lines, -2 lines 0 comments Download
M net/tools/dump_cache/upgrade.cc View 1 2 3 4 5 6 3 chunks +4 lines, -4 lines 0 comments Download
M sandbox/src/file_policy_test.cc View 1 2 3 4 5 6 5 chunks +16 lines, -16 lines 0 comments Download
M sandbox/src/interception_unittest.cc View 1 2 3 4 5 6 4 chunks +8 lines, -8 lines 0 comments Download
M sandbox/src/job_unittest.cc View 1 2 3 4 5 6 8 chunks +9 lines, -9 lines 0 comments Download
M sandbox/src/restricted_token_unittest.cc View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M sandbox/src/win_utils_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M views/controls/table/table_view.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M webkit/default_plugin/plugin_database_handler.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Mike Belshe
Since this is mostly a bunch of casting, you seemed like the appropriate reviewer :-)
10 years, 7 months ago (2010-05-19 16:04:01 UTC) #1
Mike Belshe
http://codereview.chromium.org/2081007/diff/11002/30033 File net/tools/dump_cache/cache_dumper.cc (left): http://codereview.chromium.org/2081007/diff/11002/30033#oldcode91 net/tools/dump_cache/cache_dumper.cc:91: CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0); nit: this is a ride-along-fix.
10 years, 7 months ago (2010-05-19 17:07:20 UTC) #2
Peter Kasting
There are an enormous number of nits below. They can be broken down into a ...
10 years, 7 months ago (2010-05-19 23:17:36 UTC) #3
Mike Belshe
http://codereview.chromium.org/2081007/diff/37002/18002 File app/os_exchange_data_provider_win.cc (right): http://codereview.chromium.org/2081007/diff/37002/18002#newcode87 app/os_exchange_data_provider_win.cc:87: int cursor_; On 2010/05/19 23:17:37, Peter Kasting wrote: > ...
10 years, 7 months ago (2010-05-20 22:04:09 UTC) #4
Peter Kasting
Added tommi so he can answer my question below. Let me know if you don't ...
10 years, 7 months ago (2010-05-21 22:21:14 UTC) #5
Mike Belshe
http://codereview.chromium.org/2081007/diff/37002/18021 File chrome_frame/chrome_active_document.cc (right): http://codereview.chromium.org/2081007/diff/37002/18021#newcode876 chrome_frame/chrome_active_document.cc:876: if (cmd == static_cast<UINT>(context_menu_IDC_BACK)) { On 2010/05/21 22:21:14, Peter ...
10 years, 7 months ago (2010-05-24 20:08:19 UTC) #6
Peter Kasting
Somehow, tommi didn't get added before. tommi, can you say what the DCHECK at the ...
10 years, 7 months ago (2010-05-25 00:04:39 UTC) #7
tommi1
sorry about the delay (today is a holiday and codereview kept giving me server errors). ...
10 years, 7 months ago (2010-05-25 01:17:12 UTC) #8
Peter Kasting
On Mon, May 24, 2010 at 6:16 PM, Tommi <tommi@google.com> wrote: > sorry about the ...
10 years, 7 months ago (2010-05-25 03:23:10 UTC) #9
tommi (sloooow) - chröme
Yes, it can be removed. It's a sanity check for the .resize() call just above. ...
10 years, 7 months ago (2010-05-25 03:58:00 UTC) #10
Peter Kasting
10 years, 7 months ago (2010-05-25 06:06:51 UTC) #11
LGTM

http://codereview.chromium.org/2081007/diff/75004/96026
File chrome_frame/html_utils.cc (right):

http://codereview.chromium.org/2081007/diff/75004/96026#newcode345
chrome_frame/html_utils.cc:345: ret.resize(size - sizeof(char));  // NOLINT
Nit: sizeof(char) is 1 by definition, and looks pretty weird... can we just
change this to 1 while we're here?

http://codereview.chromium.org/2081007/diff/75004/96026#newcode354
chrome_frame/html_utils.cc:354: DCHECK(ret.length() ==
static_cast<size_t>(lstrlenA(ret.c_str())));
Per tommi, let's remove this.

Powered by Google App Engine
This is Rietveld 408576698