diff options
author | Matt Beaumont-Gay <matthewbg@google.com> | 2013-01-31 00:08:03 +0000 |
---|---|---|
committer | Matt Beaumont-Gay <matthewbg@google.com> | 2013-01-31 00:08:03 +0000 |
commit | 3e55e3e9f5e89c0cd433f6c01e0b067911228612 (patch) | |
tree | 5a84a1516bea923e1e02ee423dcaa393384300fc /lib | |
parent | 40f56e5b677761c8258324222d62fce3e4f6bca4 (diff) |
Fix unused variable warnings in -asserts build
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173996 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Sema/SemaDeclCXX.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaDeclCXX.cpp b/lib/Sema/SemaDeclCXX.cpp index 59d1e91f36..c0697f117c 100644 --- a/lib/Sema/SemaDeclCXX.cpp +++ b/lib/Sema/SemaDeclCXX.cpp @@ -1677,15 +1677,15 @@ Sema::ActOnCXXMemberDeclarator(Scope *S, AccessSpecifier AS, Declarator &D, unsigned DiagID; bool Failed = D.getMutableDeclSpec().SetTypeQual(DeclSpec::TQ_const, ConstexprLoc, PrevSpec, DiagID, getLangOpts()); + (void)Failed; assert(!Failed && "Making a constexpr member const shouldn't fail"); } else { B << 1; const char *PrevSpec; unsigned DiagID; - DeclSpec::SCS PrevSCS = DS.getStorageClassSpec(); if (D.getMutableDeclSpec().SetStorageClassSpec( *this, DeclSpec::SCS_static, ConstexprLoc, PrevSpec, DiagID)) { - assert(PrevSCS == DeclSpec::SCS_mutable && + assert(DS.getStorageClassSpec() == DeclSpec::SCS_mutable && "This is the only DeclSpec that should fail to be applied"); B << 1; } else { |