Skip to content

Commit efb284c

Browse files
committed
[clang-format] Fixed an unused variable warning
1 parent 0a36c72 commit efb284c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Format/QualifierAlignmentFixer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,9 +406,9 @@ void QualifierAlignmentFixer::PrepareLeftRightOrdering(
406406
// Depending on the position of type in the order you need
407407
// To iterate forward or backward through the order list as qualifier
408408
// can push through each other.
409-
auto type = std::find(Order.begin(), Order.end(), "type");
410409
// The Order list must define the position of "type" to signify
411-
assert(type != Order.end() && "QualifierOrder must contain type");
410+
assert(std::find(Order.begin(), Order.end(), "type") != Order.end() &&
411+
"QualifierOrder must contain type");
412412
// Split the Order list by type and reverse the left side.
413413

414414
bool left = true;

0 commit comments

Comments
 (0)