aboutsummaryrefslogtreecommitdiff
path: root/clang/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
commit2588aa7454996f3a333c9b0eccec5ccc75362807 (patch)
treeb3d6cf9b09e755a3378bf29c3868a6ca1bdc67b8 /clang/lib/Frontend/CompilerInvocation.cpp
parentf5689f830414bdb60ce56ff37c182b6cebcedd0b (diff)
downloadllvm-2588aa7454996f3a333c9b0eccec5ccc75362807.zip
llvm-2588aa7454996f3a333c9b0eccec5ccc75362807.tar.gz
llvm-2588aa7454996f3a333c9b0eccec5ccc75362807.tar.bz2
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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 78a88f6..f6babe1 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/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)