Skip to content

Commit 7d7d1af

Browse files
committed
unittests/Basic/FileManagerTest.cpp: Suppress warnings on gcc.
llvm-svn: 140364
1 parent 61bbcce commit 7d7d1af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/unittests/Basic/FileManagerTest.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ class FakeStatCache : public FileSystemStatCache {
2828
llvm::StringMap<struct stat, llvm::BumpPtrAllocator> StatCalls;
2929

3030
void InjectFileOrDirectory(const char *Path, ino_t INode, bool IsFile) {
31-
struct stat statBuf = {};
31+
struct stat statBuf;
32+
memset(&statBuf, 0, sizeof(statBuf));
3233
statBuf.st_dev = 1;
3334
#ifndef _WIN32 // struct stat has no st_ino field on Windows.
3435
statBuf.st_ino = INode;

0 commit comments

Comments
 (0)