summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2015-07-01 12:23:41 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-01 19:24:06 +0000
commitdb18a089432e97b4085d3396540e97602ae453bf (patch)
treef746d1e255ba8e0f44f0a748f24a3494047c0964 /media
parent199675e287d918419b4940332c05235b7d6fc570 (diff)
downloadchromium_src-db18a089432e97b4085d3396540e97602ae453bf.zip
chromium_src-db18a089432e97b4085d3396540e97602ae453bf.tar.gz
chromium_src-db18a089432e97b4085d3396540e97602ae453bf.tar.bz2
Fix some clang warnings with -Wmissing-braces in media.
Clang warns if there are missing braces around a subobject initializer. The most common idiom that triggers this is: STRUCT s = {0}; if the first field of STRUCT is itself a struct. This can be more simply written as: STRUCT s = {}; which also prevents the warning from firing. BUG=505297 Review URL: https://codereview.chromium.org/1208993007 Cr-Commit-Position: refs/heads/master@{#337090}
Diffstat (limited to 'media')
-rw-r--r--media/audio/win/core_audio_util_win.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/audio/win/core_audio_util_win.cc b/media/audio/win/core_audio_util_win.cc
index 8e1a82b..6c9a8c7 100644
--- a/media/audio/win/core_audio_util_win.cc
+++ b/media/audio/win/core_audio_util_win.cc
@@ -746,7 +746,7 @@ ChannelConfig CoreAudioUtil::GetChannelConfig(const std::string& device_id,
ScopedComPtr<IAudioClient> client(
CreateClient(device_id, data_flow, eConsole));
- WAVEFORMATPCMEX format = {0};
+ WAVEFORMATPCMEX format = {};
if (!client.get() || FAILED(GetSharedModeMixFormat(client.get(), &format)))
return 0;