silence some -Wmissing-field-initializers warnings.

llvm-svn: 101690
This commit is contained in:
Chris Lattner 2010-04-18 03:30:32 +00:00
parent 733984a968
commit 9d12c8bb70

View File

@ -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