From: Yaron Keren Date: Fri, 7 Aug 2015 10:15:15 +0000 (+0000) Subject: Silence tools/clang/lib/Tooling/CompilationDatabase.cpp:328:12: warning: X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=56599d9f1df3de512aeffdfbe2f47cabc00463f8;p=clang Silence tools/clang/lib/Tooling/CompilationDatabase.cpp:328:12: warning: ‘clang::tooling::JSONAnchorDest’ defined but not used [-Wunused-variable] from gcc 5.1. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@244312 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Tooling/CompilationDatabase.cpp b/lib/Tooling/CompilationDatabase.cpp index 2272be632b..f9de9ba198 100644 --- a/lib/Tooling/CompilationDatabase.cpp +++ b/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