]> granicus.if.org Git - clang/commitdiff
Silence tools/clang/lib/Tooling/CompilationDatabase.cpp:328:12: warning:
authorYaron Keren <yaron.keren@gmail.com>
Fri, 7 Aug 2015 10:15:15 +0000 (10:15 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Fri, 7 Aug 2015 10:15:15 +0000 (10:15 +0000)
‘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

lib/Tooling/CompilationDatabase.cpp

index 2272be632b9ea3fed920c048a5be97700e2d249b..f9de9ba19836ff3f4e1692faa317bcc3168af6b8 100644 (file)
@@ -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