From ae55b483d4cc8274e7880cea3ba4281bee124fba Mon Sep 17 00:00:00 2001 From: Yaron Keren Date: Fri, 7 Aug 2015 10:15:15 +0000 Subject: [PATCH] =?UTF-8?q?Silence=20tools/clang/lib/Tooling/CompilationDa?= =?UTF-8?q?tabase.cpp:328:12:=20warning:=20=E2=80=98clang::tooling::JSONAn?= =?UTF-8?q?chorDest=E2=80=99=20defined=20but=20not=20used=20[-Wunused-vari?= =?UTF-8?q?able]=20from=20gcc=205.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(-) diff --git a/clang/lib/Tooling/CompilationDatabase.cpp b/clang/lib/Tooling/CompilationDatabase.cpp index 2272be632b9e..f9de9ba19836 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