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

Issue 731373002: Enable MSVC warning for unused locals. (Closed)

Created:
6 years, 1 month ago by Peter Kasting
Modified:
6 years, 1 month ago
CC:
chromium-reviews, skanuj+watch_chromium.org, sadrul, yusukes+watch_chromium.org, viettrungluu+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, browser-components-watch_chromium.org, dcheng, sievers+watch_chromium.org, yukishiino+watch_chromium.org, markusheintz_, Ilya Sherman, qsr+mojo_chromium.org, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, melevin+watch_chromium.org, grt+watch_chromium.org, jam, ben+mojo_chromium.org, abarth-chromium, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, rlp+watch_chromium.org, chromium-apps-reviews_chromium.org, erikwright+watch_chromium.org, jennb, penghuang+watch_chromium.org, jianli, jfweitz+watch_chromium.org, yzshen+watch_chromium.org, asvitkine+watch_chromium.org, kalyank, piman+watch_chromium.org, darin (slow to review), Jered, tfarina, donnd+watch_chromium.org, Dmitry Titov, Aaron Boodman, David Black, samarth+watch_chromium.org, wfh+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, kmadhusu+watch_chromium.org, danakj+watch_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Enable MSVC warning for unused locals. There is seemingly a bug in the compiler where it occasionally claims a local is unused when it isn't. This forces a few places to either inline such locals or mark them ALLOW_UNUSED_LOCAL. BUG=81439 TEST=none R=brettw@chromium.org, cpu@chromium.org, jamesr@chromium.org, rvargas@chromium.org, sievers@chromium.org, sky@chromium.org, vitalybuka@chromium.org, wolenetz@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/be940e9e152e528fc567c4eeeeb5930710873f98

Patch Set 1 #

Total comments: 15

Patch Set 2 : Build fix #

Total comments: 3

Patch Set 3 : Resync #

Total comments: 8

Patch Set 4 : Review comments #

Patch Set 5 : Fix uses of static methods #

Patch Set 6 : Fix class names #

Patch Set 7 : Another class name fix #

Patch Set 8 : Another Windows fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -177 lines) Patch
M ash/display/display_info.cc View 1 chunk +5 lines, -6 lines 0 comments Download
M ash/root_window_controller_unittest.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M base/metrics/statistics_recorder.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M base/security_unittest.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M build/common.gypi View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M build/config/compiler/BUILD.gn View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/content_settings/host_content_settings_map_unittest.cc View 1 2 3 4 1 chunk +10 lines, -14 lines 0 comments Download
M chrome/browser/enumerate_modules_model_win.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/extension_action/browser_action_interactive_test.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/extensions/external_provider_impl.cc View 1 2 3 4 5 chunks +28 lines, -32 lines 0 comments Download
M chrome/browser/history/in_memory_url_index_unittest.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/process_singleton_win.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/search/hotword_service_unittest.cc View 1 2 3 4 5 6 4 chunks +4 lines, -12 lines 0 comments Download
M chrome/browser/search/suggestions/suggestions_source.cc View 1 2 3 4 5 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/certificate_viewer_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/panels/panel_frame_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/sync_internals_message_handler.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/installer/setup/setup_main.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/installer/util/installation_validator.cc View 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/installer/util/installer_state_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M cloud_print/service/win/cloud_print_service.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M content/child/npapi/webplugin_delegate_impl_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_font_warmup_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/buffer_manager_unittest.cc View 3 chunks +9 lines, -9 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_attribs.cc View 1 chunk +1 line, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc View 1 chunk +1 line, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_framebuffers.cc View 4 chunks +4 lines, -8 lines 0 comments Download
M media/audio/win/audio_low_latency_input_win.cc View 1 3 chunks +8 lines, -5 lines 0 comments Download
M mojo/public/cpp/system/tests/macros_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/base/file_stream_context_win.cc View 3 chunks +9 lines, -11 lines 0 comments Download
M net/dns/host_resolver_impl.cc View 1 1 chunk +7 lines, -8 lines 0 comments Download
M net/quic/quic_unacked_packet_map_test.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/socket/socks5_client_socket_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/socket/socks_client_socket_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M net/tools/dump_cache/cache_dumper.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ui/base/dragdrop/os_exchange_data_win_unittest.cc View 3 chunks +0 lines, -6 lines 0 comments Download
M ui/views/controls/menu/native_menu_win.cc View 2 chunks +0 lines, -6 lines 0 comments Download
M ui/views/win/hwnd_message_handler.cc View 2 chunks +5 lines, -6 lines 0 comments Download
M ui/wm/core/nested_accelerator_controller_unittest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M win8/delegate_execute/crash_server_init.cc View 1 chunk +1 line, -1 line 0 comments Download
M win8/metro_driver/chrome_app_view_ash.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 31 (5 generated)
Peter Kasting
sky: ash/, chrome/, ui/ OWNERS rvargas: base/, net/ OWNERS vitalyuka: cloud_print/ OWNERS sievers: content/, gpu/ ...
6 years, 1 month ago (2014-11-18 00:41:03 UTC) #2
jamesr
https://codereview.chromium.org/731373002/diff/1/mojo/public/cpp/system/tests/macros_unittest.cc File mojo/public/cpp/system/tests/macros_unittest.cc (right): https://codereview.chromium.org/731373002/diff/1/mojo/public/cpp/system/tests/macros_unittest.cc#newcode70 mojo/public/cpp/system/tests/macros_unittest.cc:70: MOJO_ALLOW_UNUSED_LOCAL(local_array); this local seems to be used on the ...
6 years, 1 month ago (2014-11-18 00:44:16 UTC) #3
Peter Kasting
https://codereview.chromium.org/731373002/diff/1/mojo/public/cpp/system/tests/macros_unittest.cc File mojo/public/cpp/system/tests/macros_unittest.cc (right): https://codereview.chromium.org/731373002/diff/1/mojo/public/cpp/system/tests/macros_unittest.cc#newcode70 mojo/public/cpp/system/tests/macros_unittest.cc:70: MOJO_ALLOW_UNUSED_LOCAL(local_array); On 2014/11/18 00:44:16, jamesr wrote: > this local ...
6 years, 1 month ago (2014-11-18 00:50:30 UTC) #4
rvargas (doing something else)
base and net lgtm https://codereview.chromium.org/731373002/diff/1/net/socket/socks5_client_socket_unittest.cc File net/socket/socks5_client_socket_unittest.cc (right): https://codereview.chromium.org/731373002/diff/1/net/socket/socks5_client_socket_unittest.cc#newcode261 net/socket/socks5_client_socket_unittest.cc:261: MockWrite(ASYNC, partial1, arraysize(partial1)), On 2014/11/18 ...
6 years, 1 month ago (2014-11-18 02:11:48 UTC) #5
Peter Kasting
+brettw for .gn change and wolenetz for media/ https://codereview.chromium.org/731373002/diff/1/net/socket/socks5_client_socket_unittest.cc File net/socket/socks5_client_socket_unittest.cc (right): https://codereview.chromium.org/731373002/diff/1/net/socket/socks5_client_socket_unittest.cc#newcode261 net/socket/socks5_client_socket_unittest.cc:261: MockWrite(ASYNC, ...
6 years, 1 month ago (2014-11-18 02:15:18 UTC) #7
Peter Kasting
https://codereview.chromium.org/731373002/diff/20001/media/audio/win/audio_low_latency_input_win.cc File media/audio/win/audio_low_latency_input_win.cc (right): https://codereview.chromium.org/731373002/diff/20001/media/audio/win/audio_low_latency_input_win.cc#newcode246 media/audio/win/audio_low_latency_input_win.cc:246: DLOG(WARNING) << "Failed to set new input master volume."; ...
6 years, 1 month ago (2014-11-18 02:17:15 UTC) #8
sky
LGTM https://codereview.chromium.org/731373002/diff/40001/chrome/browser/search/suggestions/suggestions_source.cc File chrome/browser/search/suggestions/suggestions_source.cc (left): https://codereview.chromium.org/731373002/diff/40001/chrome/browser/search/suggestions/suggestions_source.cc#oldcode119 chrome/browser/search/suggestions/suggestions_source.cc:119: SuggestionsServiceFactory* suggestions_service_factory = Does MSVC really complain about ...
6 years, 1 month ago (2014-11-18 03:33:31 UTC) #9
Peter Kasting
https://codereview.chromium.org/731373002/diff/40001/chrome/browser/search/suggestions/suggestions_source.cc File chrome/browser/search/suggestions/suggestions_source.cc (left): https://codereview.chromium.org/731373002/diff/40001/chrome/browser/search/suggestions/suggestions_source.cc#oldcode119 chrome/browser/search/suggestions/suggestions_source.cc:119: SuggestionsServiceFactory* suggestions_service_factory = On 2014/11/18 03:33:31, sky wrote: > ...
6 years, 1 month ago (2014-11-18 06:23:17 UTC) #10
jamesr
https://codereview.chromium.org/731373002/diff/40001/chrome/browser/search/suggestions/suggestions_source.cc File chrome/browser/search/suggestions/suggestions_source.cc (left): https://codereview.chromium.org/731373002/diff/40001/chrome/browser/search/suggestions/suggestions_source.cc#oldcode119 chrome/browser/search/suggestions/suggestions_source.cc:119: SuggestionsServiceFactory* suggestions_service_factory = On 2014/11/18 06:23:17, Peter Kasting wrote: ...
6 years, 1 month ago (2014-11-18 06:30:58 UTC) #11
Peter Kasting
https://codereview.chromium.org/731373002/diff/40001/chrome/browser/search/suggestions/suggestions_source.cc File chrome/browser/search/suggestions/suggestions_source.cc (left): https://codereview.chromium.org/731373002/diff/40001/chrome/browser/search/suggestions/suggestions_source.cc#oldcode119 chrome/browser/search/suggestions/suggestions_source.cc:119: SuggestionsServiceFactory* suggestions_service_factory = On 2014/11/18 06:30:58, jamesr wrote: > ...
6 years, 1 month ago (2014-11-18 06:36:06 UTC) #12
no sievers
lgtm https://codereview.chromium.org/731373002/diff/40001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/731373002/diff/40001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode673 content/browser/renderer_host/render_widget_host_view_aura.cc:673: // ?? Should this use host instead of ...
6 years, 1 month ago (2014-11-18 19:27:27 UTC) #13
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/731373002/diff/40001/cloud_print/service/win/cloud_print_service.cc File cloud_print/service/win/cloud_print_service.cc (right): https://codereview.chromium.org/731373002/diff/40001/cloud_print/service/win/cloud_print_service.cc#newcode343 cloud_print/service/win/cloud_print_service.cc:343: !service_state.FromString(contents)) { please don't return error. that was just ...
6 years, 1 month ago (2014-11-18 19:35:56 UTC) #14
Peter Kasting
https://codereview.chromium.org/731373002/diff/40001/cloud_print/service/win/cloud_print_service.cc File cloud_print/service/win/cloud_print_service.cc (right): https://codereview.chromium.org/731373002/diff/40001/cloud_print/service/win/cloud_print_service.cc#newcode343 cloud_print/service/win/cloud_print_service.cc:343: !service_state.FromString(contents)) { On 2014/11/18 19:35:56, Vitaly Buka wrote: > ...
6 years, 1 month ago (2014-11-18 20:45:31 UTC) #15
Vitaly Buka (NO REVIEWS)
cloud_print/ lgtm
6 years, 1 month ago (2014-11-19 01:15:13 UTC) #16
Peter Kasting
On 2014/11/18 06:30:58, jamesr wrote: > https://codereview.chromium.org/731373002/diff/40001/chrome/browser/search/suggestions/suggestions_source.cc > File chrome/browser/search/suggestions/suggestions_source.cc (left): > > https://codereview.chromium.org/731373002/diff/40001/chrome/browser/search/suggestions/suggestions_source.cc#oldcode119 > ...
6 years, 1 month ago (2014-11-19 01:53:00 UTC) #17
brettw
build lgtm
6 years, 1 month ago (2014-11-19 18:07:17 UTC) #18
jamesr
lgtm, but imo it'd be better to not enable this warning. it's too stupid.
6 years, 1 month ago (2014-11-20 20:27:48 UTC) #19
cpu_(ooo_6.6-7.5)
lgtm
6 years, 1 month ago (2014-11-20 22:19:13 UTC) #20
wolenetz
media/ lgtm (see also my note, per chat:) https://codereview.chromium.org/731373002/diff/20001/media/audio/win/audio_low_latency_input_win.cc File media/audio/win/audio_low_latency_input_win.cc (right): https://codereview.chromium.org/731373002/diff/20001/media/audio/win/audio_low_latency_input_win.cc#newcode246 media/audio/win/audio_low_latency_input_win.cc:246: DLOG(WARNING) ...
6 years, 1 month ago (2014-11-20 22:47:26 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/731373002/140001
6 years, 1 month ago (2014-11-20 22:50:45 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/25672)
6 years, 1 month ago (2014-11-20 23:00:22 UTC) #25
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/be940e9e152e528fc567c4eeeeb5930710873f98 Cr-Commit-Position: refs/heads/master@{#305108}
6 years, 1 month ago (2014-11-20 23:17:30 UTC) #26
Peter Kasting
Committed patchset #8 (id:140001) manually as be940e9e152e528fc567c4eeeeb5930710873f98 (presubmit successful).
6 years, 1 month ago (2014-11-20 23:17:35 UTC) #27
wolenetz
On 2014/11/20 22:47:26, wolenetz wrote: > ... > https://codereview.chromium.org/731373002/diff/20001/media/audio/win/audio_low_latency_input_win.cc > File media/audio/win/audio_low_latency_input_win.cc (right): > > ...
6 years, 1 month ago (2014-11-20 23:33:37 UTC) #28
henrika (OOO until Aug 14)
see comment inline https://codereview.chromium.org/731373002/diff/20001/media/audio/win/audio_low_latency_input_win.cc File media/audio/win/audio_low_latency_input_win.cc (right): https://codereview.chromium.org/731373002/diff/20001/media/audio/win/audio_low_latency_input_win.cc#newcode246 media/audio/win/audio_low_latency_input_win.cc:246: DLOG(WARNING) << "Failed to set new ...
6 years, 1 month ago (2014-11-21 09:35:09 UTC) #30
wolenetz
6 years, 1 month ago (2014-11-21 18:29:23 UTC) #31
Message was sent while issue was closed.
On 2014/11/21 09:35:09, henrika wrote:
> see comment inline
> 
>
https://codereview.chromium.org/731373002/diff/20001/media/audio/win/audio_lo...
> File media/audio/win/audio_low_latency_input_win.cc (right):
> 
>
https://codereview.chromium.org/731373002/diff/20001/media/audio/win/audio_lo...
> media/audio/win/audio_low_latency_input_win.cc:246: DLOG(WARNING) << "Failed
to
> set new input master volume.";
> Thanks for fixing Peter ;-)
> 
> wolenetz@: I agree that it would probably be "more correct" to avoid calling
> UpdateAgcVolume()but it will actually not hurt to keep going either. If Set
> fails, the Update call will do nothing and we are fine.
> 
> To keep things simple, I propose that we don't change the call-flow at this
> stage if that is OK with you guys.

sgtm. Thanks,
Matt

Powered by Google App Engine
This is Rietveld 408576698