Skip to content

Commit f559371

Browse files
committed
NFC: Fix unused variable warnings in ParseDecl.cpp.
1 parent 999b790 commit f559371

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/Parse/ParseDecl.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3663,7 +3663,7 @@ ParserStatus Parser::parseNewDeclAttribute(DeclAttributes &Attributes,
36633663
return makeParserSuccess();
36643664
}
36653665

3666-
SourceLoc LParenLoc = consumeToken(tok::l_paren);
3666+
consumeToken(tok::l_paren);
36673667

36683668
if (!Tok.canBeArgumentLabel()) {
36693669
diagnose(Loc, diag::attr_rawlayout_expected_label, "'size', 'like', or 'likeArrayOf'");
@@ -3672,7 +3672,7 @@ ParserStatus Parser::parseNewDeclAttribute(DeclAttributes &Attributes,
36723672
}
36733673

36743674
Identifier firstLabel;
3675-
SourceLoc firstLabelLoc = consumeArgumentLabel(firstLabel, true);
3675+
consumeArgumentLabel(firstLabel, true);
36763676
if (!consumeIf(tok::colon)) {
36773677
diagnose(Loc, diag::attr_expected_colon_after_label, firstLabel.str());
36783678
return makeParserSuccess();
@@ -3700,7 +3700,7 @@ ParserStatus Parser::parseNewDeclAttribute(DeclAttributes &Attributes,
37003700
}
37013701

37023702
Identifier alignLabel;
3703-
SourceLoc alignLabelLoc = consumeArgumentLabel(alignLabel, true);
3703+
consumeArgumentLabel(alignLabel, true);
37043704
if (!consumeIf(tok::colon)) {
37053705
diagnose(Loc, diag::attr_expected_colon_after_label, "alignment");
37063706
return makeParserSuccess();
@@ -3759,7 +3759,7 @@ ParserStatus Parser::parseNewDeclAttribute(DeclAttributes &Attributes,
37593759
}
37603760

37613761
Identifier countLabel;
3762-
SourceLoc countLabelLoc = consumeArgumentLabel(countLabel, true);
3762+
consumeArgumentLabel(countLabel, true);
37633763
if (!consumeIf(tok::colon)) {
37643764
diagnose(Loc, diag::attr_expected_colon_after_label, "count");
37653765
return makeParserSuccess();

0 commit comments

Comments
 (0)