Skip to content
Snippets Groups Projects
Commit 858b6e42 authored by Yaron Keren's avatar Yaron Keren
Browse files

Use LLVM_ATTRIBUTE_UNUSED to hide gcc 5.1 unused variable warning.

Suggestion by David Blaikie!



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@244326 91177308-0d34-0410-b5e6-96231b3b80d8
parent b6f1a494
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment