]> granicus.if.org Git - clang/commitdiff
Mark a variable as used in the absence of asserts to silence a GCC warning.
authorChandler Carruth <chandlerc@gmail.com>
Thu, 6 May 2010 05:28:42 +0000 (05:28 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 6 May 2010 05:28:42 +0000 (05:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103165 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/Decl.cpp

index ffe49671d8a3629cbb255245ad64ed53ac173169..e19a9fb7c22860b79684e135f28b8334b30ad5d7 100644 (file)
@@ -1509,6 +1509,7 @@ void TagDecl::completeDefinition() {
                                 TypeForDecl->getAs<InjectedClassNameType>())) {
     assert(Injected->Decl == this &&
            "Attempt to redefine a class template definition?");
+    (void)Injected;
   }
 }