aboutsummaryrefslogtreecommitdiff
path: root/utils/unittest
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-18 03:30:32 +0000
committerChris Lattner <sabre@nondot.org>2010-04-18 03:30:32 +0000
commitf06b859479cfcc490db86c92b5b49904a0c5d04d (patch)
tree38689ec3768e3990ba61b0c84e0e2949984d04ad /utils/unittest
parenta07cd90a2a13f86f7491d1fd58e71521936b086d (diff)
silence some -Wmissing-field-initializers warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101690 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/unittest')
-rw-r--r--utils/unittest/googletest/gtest-filepath.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/unittest/googletest/gtest-filepath.cc b/utils/unittest/googletest/gtest-filepath.cc
index 640c27c313..493ba0bfa7 100644
--- a/utils/unittest/googletest/gtest-filepath.cc
+++ b/utils/unittest/googletest/gtest-filepath.cc
@@ -167,7 +167,7 @@ bool FilePath::FileOrDirectoryExists() const {
return _stat(pathname_.c_str(), &file_stat) == 0;
#endif // _WIN32_WCE
#else
- struct stat file_stat = {};
+ struct stat file_stat;
return stat(pathname_.c_str(), &file_stat) == 0;
#endif // GTEST_OS_WINDOWS
}
@@ -195,7 +195,7 @@ bool FilePath::DirectoryExists() const {
(_S_IFDIR & file_stat.st_mode) != 0;
#endif // _WIN32_WCE
#else
- struct stat file_stat = {};
+ struct stat file_stat;
result = stat(pathname_.c_str(), &file_stat) == 0 &&
S_ISDIR(file_stat.st_mode);
#endif // GTEST_OS_WINDOWS