[llvm-commits] [llvm] r101690 - /llvm/trunk/utils/unittest/googletest/gtest-filepath.cc
Chris Lattner
sabre at nondot.org
Sat Apr 17 20:30:33 PDT 2010
Author: lattner
Date: Sat Apr 17 22:30:32 2010
New Revision: 101690
URL: http://llvm.org/viewvc/llvm-project?rev=101690&view=rev
Log:
silence some -Wmissing-field-initializers warnings.
Modified:
llvm/trunk/utils/unittest/googletest/gtest-filepath.cc
Modified: llvm/trunk/utils/unittest/googletest/gtest-filepath.cc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/unittest/googletest/gtest-filepath.cc?rev=101690&r1=101689&r2=101690&view=diff
==============================================================================
--- llvm/trunk/utils/unittest/googletest/gtest-filepath.cc (original)
+++ llvm/trunk/utils/unittest/googletest/gtest-filepath.cc Sat Apr 17 22:30:32 2010
@@ -167,7 +167,7 @@
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 @@
(_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
More information about the llvm-commits
mailing list