From 3770da522a8a10e916545ecf09ea4de98a6b4f2a Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Tue, 31 Dec 2013 03:16:57 +0000 Subject: [PATCH] Silence g++ 4.9 build issue lib/ASTMatchers/ASTMatchFinder.cpp:276:28: error: typedef 'traverse_can_only_be_instantiated_with_base_type' locally defined but not used [-Werror=unused-local-typedefs] traverse_can_only_be_instantiated_with_base_type); git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198256 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/ASTMatchers/ASTMatchersInternal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/clang/ASTMatchers/ASTMatchersInternal.h b/include/clang/ASTMatchers/ASTMatchersInternal.h index 76eb4889f1..e66bf09071 100644 --- a/include/clang/ASTMatchers/ASTMatchersInternal.h +++ b/include/clang/ASTMatchers/ASTMatchersInternal.h @@ -52,9 +52,9 @@ namespace clang { namespace ast_matchers { -/// FIXME: Move into the llvm support library. +/// TODO: Use LLVM_STATIC_ASSERT() instead of this. template struct CompileAssert {}; -#define TOOLING_COMPILE_ASSERT(Expr, Msg) \ +#define TOOLING_COMPILE_ASSERT(Expr, Msg) LLVM_ATTRIBUTE_UNUSED \ typedef CompileAssert<(bool(Expr))> Msg[bool(Expr) ? 1 : -1] class BoundNodes; -- 2.40.0