summaryrefslogtreecommitdiffstats
path: root/unittests
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2011-09-23 01:53:05 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2011-09-23 01:53:05 +0000
commitd01fb36600642d2539b6a97bf2ae308cc44a9f46 (patch)
tree2e23db434bce5f57fefba1d01c5d5ed1ed27724f /unittests
parentd41f3d8bd26d41d1fcd832b2d8316c9b8cf1f7a1 (diff)
unittests/Basic/FileManagerTest.cpp: Suppress warnings on gcc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140364 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/Basic/FileManagerTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/unittests/Basic/FileManagerTest.cpp b/unittests/Basic/FileManagerTest.cpp
index a725a437f6..91998b6388 100644
--- a/unittests/Basic/FileManagerTest.cpp
+++ b/unittests/Basic/FileManagerTest.cpp
@@ -28,7 +28,8 @@ private:
llvm::StringMap<struct stat, llvm::BumpPtrAllocator> StatCalls;
void InjectFileOrDirectory(const char *Path, ino_t INode, bool IsFile) {
- struct stat statBuf = {};
+ struct stat statBuf;
+ memset(&statBuf, 0, sizeof(statBuf));
statBuf.st_dev = 1;
#ifndef _WIN32 // struct stat has no st_ino field on Windows.
statBuf.st_ino = INode;