Browse Source

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

Yaron Keren 10 years ago
parent
commit
56599d9f1d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Tooling/CompilationDatabase.cpp

+ 1 - 1
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
 // This anchor is used to force the linker to link in the generated object file
 // and thus register the JSONCompilationDatabasePlugin.
 // and thus register the JSONCompilationDatabasePlugin.
 extern volatile int JSONAnchorSource;
 extern volatile int JSONAnchorSource;
-static int JSONAnchorDest = JSONAnchorSource;
+int JSONAnchorDest = JSONAnchorSource;
 
 
 } // end namespace tooling
 } // end namespace tooling
 } // end namespace clang
 } // end namespace clang