summaryrefslogtreecommitdiff
path: root/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2013-12-28 02:50:00 +0000
committerChandler Carruth <chandlerc@gmail.com>2013-12-28 02:50:00 +0000
commita75e19079ed7b415916556579805838e4db3bb83 (patch)
tree4ad6d5f8d6785e55293bf8d6d0b8687343ab6ee9 /lib/Frontend/CompilerInvocation.cpp
parent305448f04b42514e6c718c16e93ceaca8bc23155 (diff)
downloadclang-a75e19079ed7b415916556579805838e4db3bb83.tar.gz
clang-a75e19079ed7b415916556579805838e4db3bb83.tar.bz2
clang-a75e19079ed7b415916556579805838e4db3bb83.tar.xz
Silence a dubious GCC warning about a set but unused global. Indeed, the
purpose of this global is to be set and not used. =] git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198094 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--lib/Frontend/CompilerInvocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp
index 78a88f65f6..f6babe10b9 100644
--- a/lib/Frontend/CompilerInvocation.cpp
+++ b/lib/Frontend/CompilerInvocation.cpp
@@ -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)