From ae55b483d4cc8274e7880cea3ba4281bee124fba Mon Sep 17 00:00:00 2001 From: Yaron Keren Date: Fri, 7 Aug 2015 10:15:15 +0000 Subject: Silence tools/clang/lib/Tooling/CompilationDatabase.cpp:328:12: warning: ‘clang::tooling::JSONAnchorDest’ defined but not used [-Wunused-variable] from gcc 5.1. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit llvm-svn: 244312 --- clang/lib/Tooling/CompilationDatabase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Tooling/CompilationDatabase.cpp') diff --git a/clang/lib/Tooling/CompilationDatabase.cpp b/clang/lib/Tooling/CompilationDatabase.cpp index 2272be632b9..f9de9ba1983 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 -- cgit v1.2.3