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

Issue 419323002: clang/win: Fix a few warnings. (Closed)

Created:
6 years, 5 months ago by Nico
Modified:
6 years, 4 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, erikwright+watch_chromium.org, native-client-reviews_googlegroups.com, dmikurube+memory_chromium.org, tommi (sloooow) - chröme
Project:
chromium
Visibility:
Public.

Description

clang/win: Fix a few warnings. __THROW is not some magical thing, don't pretend it is. Don't add it to extern "C" functions. Replace it with "throw ()" on the functions where it's correct since it was defined to nothing on windows (the only place where this file is used). Fix an inconsequential enum constant mix-up in media (both enum constants evaluated to the same value, and the enums had the same size, so it shouldn't make a difference in practice, but the old code was comparing enum variables with enum constants from a different enum). BUG=82385 TBR=dalecurtis Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285838

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -22 lines) Patch
M base/allocator/allocator_shim.cc View 5 chunks +4 lines, -11 lines 0 comments Download
M base/allocator/generic_allocators.cc View 4 chunks +6 lines, -6 lines 0 comments Download
M base/process/launch_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/nacl/nacl_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/audio/win/audio_device_listener_win.cc View 1 chunk +3 lines, -3 lines 1 comment Download

Messages

Total messages: 9 (0 generated)
Nico
willchan: base/ (when are you going to take allocator_shim behind the barn? :-) ) dalecurtis: ...
6 years, 5 months ago (2014-07-26 20:21:42 UTC) #1
willchan no longer on Chromium
lgtm
6 years, 5 months ago (2014-07-27 03:34:42 UTC) #2
Nico
The CQ bit was checked by thakis@chromium.org
6 years, 5 months ago (2014-07-27 04:37:29 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thakis@chromium.org/419323002/1
6 years, 5 months ago (2014-07-27 04:38:21 UTC) #4
commit-bot: I haz the power
Change committed as 285838
6 years, 4 months ago (2014-07-27 11:30:47 UTC) #5
DaleCurtis
lgtm
6 years, 4 months ago (2014-07-28 18:57:56 UTC) #6
tommi (sloooow) - chröme
https://codereview.chromium.org/419323002/diff/1/media/audio/win/audio_device_listener_win.cc File media/audio/win/audio_device_listener_win.cc (right): https://codereview.chromium.org/419323002/diff/1/media/audio/win/audio_device_listener_win.cc#newcode149 media/audio/win/audio_device_listener_win.cc:149: role == eConsole ? ( ehm, thanks for fixing ...
6 years, 4 months ago (2014-07-28 22:48:38 UTC) #7
Nico
D'oh, sorry :-( Do you want me to send you a fix, or do you ...
6 years, 4 months ago (2014-07-28 22:55:35 UTC) #8
Nico
6 years, 4 months ago (2014-07-28 22:55:36 UTC) #9
D'oh, sorry :-( Do you want me to send you a fix, or do you want to fix
yourself?


On Mon, Jul 28, 2014 at 3:48 PM, <tommi@chromium.org> wrote:

>
> https://codereview.chromium.org/419323002/diff/1/media/
> audio/win/audio_device_listener_win.cc
> File media/audio/win/audio_device_listener_win.cc (right):
>
> https://codereview.chromium.org/419323002/diff/1/media/
> audio/win/audio_device_listener_win.cc#newcode149
> media/audio/win/audio_device_listener_win.cc:149: role == eConsole ? (
> ehm, thanks for fixing this. Sadly (mea culpa) I'm not sure it's correct
> still.
> I think this should be:
>
> flow == eRender ? (
>
>     role == eConsole ? (
>         &default_render_device_id_ :
>         &default_communications_render_device_id_
>     ) : (
>
>         role == eConsole ? (
>             &default_capture_device_id_ :
>             &default_communications_capture_device_id_
>     );
>
> Basically the |role| and |flow| variables were mixed up, not the
> constants :(
>
> https://codereview.chromium.org/419323002/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698