Skip to content

Commit 0c2ded6

Browse files
committed
[NFC] Fix compile warning introduced in #99732
1 parent 55ea360 commit 0c2ded6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/lib/Parse/ParseOpenMP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3337,7 +3337,7 @@ OMPClause *Parser::ParseOpenMPClause(OpenMPDirectiveKind DKind,
33373337
<< getOpenMPDirectiveName(DKind) << getOpenMPClauseName(CKind) << 0;
33383338
ErrorFound = true;
33393339
}
3340-
[[clang::fallthrough]];
3340+
[[fallthrough]];
33413341
case OMPC_private:
33423342
case OMPC_firstprivate:
33433343
case OMPC_lastprivate:

clang/lib/Serialization/ASTReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11423,7 +11423,7 @@ void OMPClauseReader::VisitOMPNumTeamsClause(OMPNumTeamsClause *C) {
1142311423
unsigned NumVars = C->varlist_size();
1142411424
SmallVector<Expr *, 16> Vars;
1142511425
Vars.reserve(NumVars);
11426-
for (auto _ : llvm::seq<unsigned>(NumVars)) {
11426+
for ([[maybe_unused]] auto _ : llvm::seq<unsigned>(NumVars)) {
1142711427
(void)_;
1142811428
Vars.push_back(Record.readSubExpr());
1142911429
}

0 commit comments

Comments
 (0)