aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Tooling/CompilationDatabase.cpp
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2015-08-07 16:21:23 +0000
committerYaron Keren <yaron.keren@gmail.com>2015-08-07 16:21:23 +0000
commitb7e8c7c7c6895dcd93cd7728fbd09157ac738f08 (patch)
treecae8e2283ed31b725b4eb409c3e3896c901d2d18 /clang/lib/Tooling/CompilationDatabase.cpp
parente710d5459ee7fc4ffac35e89651611b1498bb1d3 (diff)
downloadllvm-b7e8c7c7c6895dcd93cd7728fbd09157ac738f08.zip
llvm-b7e8c7c7c6895dcd93cd7728fbd09157ac738f08.tar.gz
llvm-b7e8c7c7c6895dcd93cd7728fbd09157ac738f08.tar.bz2
Use LLVM_ATTRIBUTE_UNUSED to hide gcc 5.1 unused variable warning.
Suggestion by David Blaikie! llvm-svn: 244326
Diffstat (limited to 'clang/lib/Tooling/CompilationDatabase.cpp')
-rw-r--r--clang/lib/Tooling/CompilationDatabase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Tooling/CompilationDatabase.cpp b/clang/lib/Tooling/CompilationDatabase.cpp
index f9de9ba..c1817b7 100644
--- a/clang/lib/Tooling/CompilationDatabase.cpp
+++ b/clang/lib/Tooling/CompilationDatabase.cpp
@@ -325,7 +325,7 @@ namespace tooling {
// This anchor is used to force the linker to link in the generated object file
// and thus register the JSONCompilationDatabasePlugin.
extern volatile int JSONAnchorSource;
-int JSONAnchorDest = JSONAnchorSource;
+static int LLVM_ATTRIBUTE_UNUSED JSONAnchorDest = JSONAnchorSource;
} // end namespace tooling
} // end namespace clang