From: Reid Kleckner Date: Wed, 23 Apr 2014 22:03:04 +0000 (+0000) Subject: Suppress unused variable warning X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d696316661b7a7a6401923fd6d1a680748e6039a;p=clang Suppress unused variable warning git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207039 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp index f3a4ff33b9..ede419689f 100644 --- a/lib/AST/Decl.cpp +++ b/lib/AST/Decl.cpp @@ -3202,8 +3202,10 @@ TagDecl *TagDecl::getCanonicalDecl() { return getFirstDecl(); } void TagDecl::setTypedefNameForAnonDecl(TypedefNameDecl *TDD) { NamedDeclOrQualifier = TDD; - if (const Type *T = getTypeForDecl()) + if (const Type *T = getTypeForDecl()) { + (void)T; assert(T->isLinkageValid()); + } assert(isLinkageValid()); }