Silence a dubious GCC warning about a set but unused global. Indeed, the

purpose of this global is to be set and not used. =]

llvm-svn: 198094
This commit is contained in:
Chandler Carruth 2013-12-28 02:50:00 +00:00
parent f5689f8304
commit 2588aa7454
1 changed files with 1 additions and 1 deletions

View File

@ -1836,7 +1836,7 @@ void BuryPointer(const void *Ptr) {
// will not be properly buried and a leak detector will report a leak, which
// is what we want in such case.
static const size_t kGraveYardMaxSize = 16;
static const void *GraveYard[kGraveYardMaxSize];
LLVM_ATTRIBUTE_UNUSED static const void *GraveYard[kGraveYardMaxSize];
static llvm::sys::cas_flag GraveYardSize;
llvm::sys::cas_flag Idx = llvm::sys::AtomicIncrement(&GraveYardSize) - 1;
if (Idx >= kGraveYardMaxSize)