Skip to content

Commit 291fd8f

Browse files
committed
clang/lib/Sema/SemaExprCXX.cpp: Suppress a warning introduced in #133113. [-Wunused-but-set-variable]
1 parent cc30fba commit 291fd8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaExprCXX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ ParsedType Sema::getInheritingConstructorName(CXXScopeSpec &SS,
6060
SourceLocation NameLoc,
6161
const IdentifierInfo &Name) {
6262
NestedNameSpecifier *NNS = SS.getScopeRep();
63-
if (const IdentifierInfo *II = NNS->getAsIdentifier())
63+
if ([[maybe_unused]] const IdentifierInfo *II = NNS->getAsIdentifier())
6464
assert(II == &Name && "not a constructor name");
6565

6666
QualType Type(NNS->translateToType(Context), 0);

0 commit comments

Comments
 (0)