diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2008-02-15 19:49:39 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2008-02-15 19:49:39 +0000 |
| commit | b26be3d0535ba82c22deac439656bdb766b2c764 (patch) | |
| tree | 58e9776808401049b488ce92393c95aac399c30d | |
| parent | a69c2f86b4cf75c038dc609711779146f701a243 (diff) | |
| download | bcm5719-llvm-b26be3d0535ba82c22deac439656bdb766b2c764.tar.gz bcm5719-llvm-b26be3d0535ba82c22deac439656bdb766b2c764.zip | |
Get rid of unused variable warning.
llvm-svn: 47174
| -rw-r--r-- | clang/Sema/SemaDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/Sema/SemaDecl.cpp b/clang/Sema/SemaDecl.cpp index 81d4c9e0f7c..137a188fbbd 100644 --- a/clang/Sema/SemaDecl.cpp +++ b/clang/Sema/SemaDecl.cpp @@ -897,7 +897,7 @@ Sema::DeclTy *Sema::FinalizeDeclaratorGroup(Scope *S, DeclTy *group) { // C99 6.7.5.2p2: If an identifier is declared to be an object with // static storage duration, it shall not have a variable length array. if ((FVD || BVD) && IDecl->getStorageClass() == VarDecl::Static) { - if (const VariableArrayType *VLA = T->getAsVariableArrayType()) { + if (T->isVariableArrayType()) { Diag(IDecl->getLocation(), diag::err_typecheck_illegal_vla); IDecl->setInvalidDecl(); } |

