Silence tools/clang/lib/Tooling/CompilationDatabase.cpp:328:12: warning:

‘clang::tooling::JSONAnchorDest’ defined but not used [-Wunused-variable]
from gcc 5.1.

llvm-svn: 244312
This commit is contained in:
Yaron Keren 2015-08-07 10:15:15 +00:00
parent b918a404c3
commit ae55b483d4
1 changed files with 1 additions and 1 deletions

View 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