silence some -Wmissing-field-initializers warnings.
authorChris Lattner <sabre@nondot.org>
Sun, 18 Apr 2010 03:30:32 +0000 (03:30 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 18 Apr 2010 03:30:32 +0000 (03:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101690 91177308-0d34-0410-b5e6-96231b3b80d8

utils/unittest/googletest/gtest-filepath.cc

index 640c27c313c3d6b6f60a24c2d7e52c38ceeb0a88..493ba0bfa7d0034960e20cb41cbfc51f34e99ecd 100644 (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