Skip to content

Commit b1b4bf0

Browse files
authored
[flang] Fix build warning on now-unused variable (#70852)
A recent change of mine caused a local variable to become obsolete in its function, leading to a warning with some build compilers that is fatal under -Werror, breaking a build bot. Remove the variable.
1 parent f19af90 commit b1b4bf0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

flang/lib/Evaluate/type.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ static bool IsDescriptor(const ObjectEntityDetails &details) {
3737
if (IsDescriptor(details.type()) || details.IsAssumedRank()) {
3838
return true;
3939
}
40-
std::size_t j{0};
4140
for (const ShapeSpec &shapeSpec : details.shape()) {
42-
++j;
4341
if (const auto &ub{shapeSpec.ubound().GetExplicit()}) {
4442
if (!IsConstantExpr(*ub)) {
4543
return true;

0 commit comments

Comments
 (0)