diff options
| author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-09-23 01:53:05 +0000 | 
|---|---|---|
| committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-09-23 01:53:05 +0000 | 
| commit | 7d7d1afeb7177434a2f16af6a3355cf95ed360e4 (patch) | |
| tree | b69976d4f5ab3311a1873eaeda889e06ab64c554 | |
| parent | 61bbcce84a62b38c992fb88c764bc3b71d7ff571 (diff) | |
| download | bcm5719-llvm-7d7d1afeb7177434a2f16af6a3355cf95ed360e4.tar.gz bcm5719-llvm-7d7d1afeb7177434a2f16af6a3355cf95ed360e4.zip  | |
unittests/Basic/FileManagerTest.cpp: Suppress warnings on gcc.
llvm-svn: 140364
| -rw-r--r-- | clang/unittests/Basic/FileManagerTest.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/unittests/Basic/FileManagerTest.cpp b/clang/unittests/Basic/FileManagerTest.cpp index a725a437f6b..91998b63885 100644 --- a/clang/unittests/Basic/FileManagerTest.cpp +++ b/clang/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;  | 

