aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Tooling/CompilationDatabase.cpp
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2015-08-07 10:15:15 +0000
committerYaron Keren <yaron.keren@gmail.com>2015-08-07 10:15:15 +0000
commitae55b483d4cc8274e7880cea3ba4281bee124fba (patch)
tree2a2d04d4024aa2dea76786b1be5c00d41b61a375 /clang/lib/Tooling/CompilationDatabase.cpp
parentb918a404c328e35ceb30c234d7e3514942f39538 (diff)
downloadllvm-ae55b483d4cc8274e7880cea3ba4281bee124fba.zip
llvm-ae55b483d4cc8274e7880cea3ba4281bee124fba.tar.gz
llvm-ae55b483d4cc8274e7880cea3ba4281bee124fba.tar.bz2
Silence tools/clang/lib/Tooling/CompilationDatabase.cpp:328:12: warning:
‘clang::tooling::JSONAnchorDest’ defined but not used [-Wunused-variable] from gcc 5.1. llvm-svn: 244312
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 2272be6..f9de9ba 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;
-static int JSONAnchorDest = JSONAnchorSource;
+int JSONAnchorDest = JSONAnchorSource;
} // end namespace tooling
} // end namespace clang