From b7e8c7c7c6895dcd93cd7728fbd09157ac738f08 Mon Sep 17 00:00:00 2001 From: Yaron Keren Date: Fri, 7 Aug 2015 16:21:23 +0000 Subject: [PATCH] Use LLVM_ATTRIBUTE_UNUSED to hide gcc 5.1 unused variable warning. Suggestion by David Blaikie! llvm-svn: 244326 --- clang/lib/Tooling/CompilationDatabase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Tooling/CompilationDatabase.cpp b/clang/lib/Tooling/CompilationDatabase.cpp index f9de9ba..c1817b7 100644 --- a/clang/lib/Tooling/CompilationDatabase.cpp +++ b/clang/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 // 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 -- 2.7.4