We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc30fba commit 291fd8fCopy full SHA for 291fd8f
clang/lib/Sema/SemaExprCXX.cpp
@@ -60,7 +60,7 @@ ParsedType Sema::getInheritingConstructorName(CXXScopeSpec &SS,
60
SourceLocation NameLoc,
61
const IdentifierInfo &Name) {
62
NestedNameSpecifier *NNS = SS.getScopeRep();
63
- if (const IdentifierInfo *II = NNS->getAsIdentifier())
+ if ([[maybe_unused]] const IdentifierInfo *II = NNS->getAsIdentifier())
64
assert(II == &Name && "not a constructor name");
65
66
QualType Type(NNS->translateToType(Context), 0);
0 commit comments