aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--webrtc/base/criticalsection.cc2
-rw-r--r--webrtc/modules/audio_processing/include/audio_processing.h2
-rw-r--r--webrtc/test/testsupport/fileutils.cc4
3 files changed, 4 insertions, 4 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/modules/audio_processing/include/audio_processing.h b/webrtc/modules/audio_processing/include/audio_processing.h
index 9a3a4b32d5..8a27a27348 100644
--- a/webrtc/modules/audio_processing/include/audio_processing.h
+++ b/webrtc/modules/audio_processing/include/audio_processing.h
@@ -426,7 +426,7 @@ class AudioProcessing {
// Same as above but uses an existing PlatformFile handle. Takes ownership
// of |handle| and closes it at StopDebugRecording().
// TODO(xians): Make this interface pure virtual.
- virtual int StartDebugRecordingForPlatformFile(rtc::PlatformFile handle) {
+ virtual int StartDebugRecordingForPlatformFile(rtc::PlatformFile /*handle*/) {
return -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)) {