[cfe-commits] r140364 - /cfe/trunk/unittests/Basic/FileManagerTest.cpp
NAKAMURA Takumi
geek4civic at gmail.com
Thu Sep 22 18:53:05 PDT 2011
Author: chapuni
Date: Thu Sep 22 20:53:05 2011
New Revision: 140364
URL: http://llvm.org/viewvc/llvm-project?rev=140364&view=rev
Log:
unittests/Basic/FileManagerTest.cpp: Suppress warnings on gcc.
Modified:
cfe/trunk/unittests/Basic/FileManagerTest.cpp
Modified: cfe/trunk/unittests/Basic/FileManagerTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Basic/FileManagerTest.cpp?rev=140364&r1=140363&r2=140364&view=diff
==============================================================================
--- cfe/trunk/unittests/Basic/FileManagerTest.cpp (original)
+++ cfe/trunk/unittests/Basic/FileManagerTest.cpp Thu Sep 22 20:53:05 2011
@@ -28,7 +28,8 @@
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;
More information about the cfe-commits
mailing list