aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2017-01-12 09:19:23 -0800
committerGlenn Kasten <gkasten@google.com>2017-01-12 09:19:37 -0800
commitf81b46177164dd722b6b3ad4093f1718b91e564f (patch)
tree96b8ac09b565d938414ca681e3e8406d581b90cf
parent3accb2262d6ba72c8a985017c3f4f38cc7e2ca62 (diff)
downloadwebrtc-f81b46177164dd722b6b3ad4093f1718b91e564f.tar.gz
Fix build warnings
Test: builds without warnings Change-Id: Ic88c90167584c97689ac32e0c03d692560e14570
-rw-r--r--webrtc/base/criticalsection.cc2
-rw-r--r--webrtc/test/testsupport/fileutils.cc4
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)) {