forked from OSchip/llvm-project
Silence gcc 5.1 unused variable warnings using LLVM_ATTRIBUTE_UNUSED.
llvm-svn: 244329
This commit is contained in:
parent
8ab4446703
commit
43b7ca7b43
|
@ -336,19 +336,19 @@ static int clangTidyMain(int argc, const char **argv) {
|
||||||
|
|
||||||
// This anchor is used to force the linker to link the LLVMModule.
|
// This anchor is used to force the linker to link the LLVMModule.
|
||||||
extern volatile int LLVMModuleAnchorSource;
|
extern volatile int LLVMModuleAnchorSource;
|
||||||
static int LLVMModuleAnchorDestination = LLVMModuleAnchorSource;
|
static int LLVM_ATTRIBUTE_UNUSED LLVMModuleAnchorDestination = LLVMModuleAnchorSource;
|
||||||
|
|
||||||
// This anchor is used to force the linker to link the GoogleModule.
|
// This anchor is used to force the linker to link the GoogleModule.
|
||||||
extern volatile int GoogleModuleAnchorSource;
|
extern volatile int GoogleModuleAnchorSource;
|
||||||
static int GoogleModuleAnchorDestination = GoogleModuleAnchorSource;
|
static int LLVM_ATTRIBUTE_UNUSED GoogleModuleAnchorDestination = GoogleModuleAnchorSource;
|
||||||
|
|
||||||
// This anchor is used to force the linker to link the MiscModule.
|
// This anchor is used to force the linker to link the MiscModule.
|
||||||
extern volatile int MiscModuleAnchorSource;
|
extern volatile int MiscModuleAnchorSource;
|
||||||
static int MiscModuleAnchorDestination = MiscModuleAnchorSource;
|
static int LLVM_ATTRIBUTE_UNUSED MiscModuleAnchorDestination = MiscModuleAnchorSource;
|
||||||
|
|
||||||
// This anchor is used to force the linker to link the ReadabilityModule.
|
// This anchor is used to force the linker to link the ReadabilityModule.
|
||||||
extern volatile int ReadabilityModuleAnchorSource;
|
extern volatile int ReadabilityModuleAnchorSource;
|
||||||
static int ReadabilityModuleAnchorDestination = ReadabilityModuleAnchorSource;
|
static int LLVM_ATTRIBUTE_UNUSED ReadabilityModuleAnchorDestination = ReadabilityModuleAnchorSource;
|
||||||
|
|
||||||
} // namespace tidy
|
} // namespace tidy
|
||||||
} // namespace clang
|
} // namespace clang
|
||||||
|
|
Loading…
Reference in New Issue