summaryrefslogtreecommitdiffstats
path: root/llvm/utils/unittest/googletest/gtest-filepath.cc
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
commit3448f4e4488ba2ac2f1dcaeb1e72f008de3c2340 (patch)
tree65cbac9ae73657000a41ca281454affc4bf74699 /llvm/utils/unittest/googletest/gtest-filepath.cc
parentf58e8c0846b68aafc7ca988dd7556a1f10ca6244 (diff)
downloadbcm5719-llvm-3448f4e4488ba2ac2f1dcaeb1e72f008de3c2340.tar.gz
bcm5719-llvm-3448f4e4488ba2ac2f1dcaeb1e72f008de3c2340.zip
silence some -Wmissing-field-initializers warnings.
llvm-svn: 101690
Diffstat (limited to 'llvm/utils/unittest/googletest/gtest-filepath.cc')
-rw-r--r--llvm/utils/unittest/googletest/gtest-filepath.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/unittest/googletest/gtest-filepath.cc b/llvm/utils/unittest/googletest/gtest-filepath.cc
index 640c27c313c..493ba0bfa7d 100644
--- a/llvm/utils/unittest/googletest/gtest-filepath.cc
+++ b/llvm/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
OpenPOWER on IntegriCloud