aboutsummaryrefslogtreecommitdiff
path: root/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2008-02-15 19:49:39 +0000
committerEli Friedman <eli.friedman@gmail.com>2008-02-15 19:49:39 +0000
commita1321b6090f12cd9d4ba3860d73460f6567adb45 (patch)
tree38baebbbce5d26f218bc882e70e19ec2751c031d /Sema/SemaDecl.cpp
parentc5773c4b8ce1ed6ed5c7112c9020c954a47dce96 (diff)
Get rid of unused variable warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47174 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Sema/SemaDecl.cpp')
-rw-r--r--Sema/SemaDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Sema/SemaDecl.cpp b/Sema/SemaDecl.cpp
index 81d4c9e0f7..137a188fbb 100644
--- a/Sema/SemaDecl.cpp
+++ b/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();
}