aboutsummaryrefslogtreecommitdiff
path: root/webrtc/system_wrappers/source
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2015-07-01 17:52:10 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-02 00:52:18 +0000
commita771bf8ee84f293c166d3e377d852e9705c12725 (patch)
treecad3c4fb01cc7113e0c5640de2479cfe5745ce56 /webrtc/system_wrappers/source
parentd830aeafe943b498fd0db51f949dc183be3b4e4f (diff)
downloadwebrtc-a771bf8ee84f293c166d3e377d852e9705c12725.tar.gz
Fix some clang warnings with -Wmissing-braces in WebRTC.
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. Other instances of the warning have been fixed by adding braces where appropriate. BUG=505297 TBR=jiayl@webrtc.org Review URL: https://codereview.webrtc.org/1216353002 Cr-Commit-Position: refs/heads/master@{#9529}
Diffstat (limited to 'webrtc/system_wrappers/source')
-rw-r--r--webrtc/system_wrappers/source/clock.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/webrtc/system_wrappers/source/clock.cc b/webrtc/system_wrappers/source/clock.cc
index a7f261a8b2..31c5226348 100644
--- a/webrtc/system_wrappers/source/clock.cc
+++ b/webrtc/system_wrappers/source/clock.cc
@@ -155,9 +155,9 @@ class WindowsRealTimeClock : public RealTimeClock {
}
static ReferencePoint GetSystemReferencePoint() {
- ReferencePoint ref = {0};
- FILETIME ft0 = {0};
- FILETIME ft1 = {0};
+ ReferencePoint ref = {};
+ FILETIME ft0 = {};
+ FILETIME ft1 = {};
// Spin waiting for a change in system time. As soon as this change happens,
// get the matching call for timeGetTime() as soon as possible. This is
// assumed to be the most accurate offset that we can get between