Use LLVM_ATTRIBUTE_UNUSED to hide gcc 5.1 unused variable warning.

Suggestion by David Blaikie!

llvm-svn: 244326
This commit is contained in:
Yaron Keren 2015-08-07 16:21:23 +00:00
parent e710d5459e
commit b7e8c7c7c6
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;
int JSONAnchorDest = JSONAnchorSource;
static int LLVM_ATTRIBUTE_UNUSED JSONAnchorDest = JSONAnchorSource;
} // end namespace tooling
} // end namespace clang