diff options
author | Glenn Kasten <gkasten@google.com> | 2017-01-12 09:19:23 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2017-01-12 09:19:37 -0800 |
commit | f81b46177164dd722b6b3ad4093f1718b91e564f (patch) | |
tree | 96b8ac09b565d938414ca681e3e8406d581b90cf | |
parent | 3accb2262d6ba72c8a985017c3f4f38cc7e2ca62 (diff) | |
download | webrtc-f81b46177164dd722b6b3ad4093f1718b91e564f.tar.gz |
Fix build warnings
Test: builds without warnings
Change-Id: Ic88c90167584c97689ac32e0c03d692560e14570
-rw-r--r-- | webrtc/base/criticalsection.cc | 2 | ||||
-rw-r--r-- | webrtc/test/testsupport/fileutils.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/webrtc/base/criticalsection.cc b/webrtc/base/criticalsection.cc index 1f50c2355d..95b5a99d14 100644 --- a/webrtc/base/criticalsection.cc +++ b/webrtc/base/criticalsection.cc @@ -136,7 +136,7 @@ bool TryCritScope::locked() const { void GlobalLockPod::Lock() { #if !defined(WEBRTC_WIN) - const struct timespec ts_null = {0}; + const struct timespec ts_null = {0, 0}; #endif while (AtomicOps::CompareAndSwap(&lock_acquired, 0, 1)) { diff --git a/webrtc/test/testsupport/fileutils.cc b/webrtc/test/testsupport/fileutils.cc index 15abf5c517..850e471998 100644 --- a/webrtc/test/testsupport/fileutils.cc +++ b/webrtc/test/testsupport/fileutils.cc @@ -95,7 +95,7 @@ void SetExecutablePath(const std::string& path) { } bool FileExists(std::string& file_name) { - struct stat file_info = {0}; + struct stat file_info = {0, 0}; return stat(file_name.c_str(), &file_info) == 0; } @@ -192,7 +192,7 @@ std::string TempFilename(const std::string &dir, const std::string &prefix) { } bool CreateDir(std::string directory_name) { - struct stat path_info = {0}; + struct stat path_info = {0, 0}; // Check if the path exists already: if (stat(directory_name.c_str(), &path_info) == 0) { if (!S_ISDIR(path_info.st_mode)) { |