Skip to content

Commit a0d296c

Browse files
committed
Fix warning on gnu-5.3.0. Change one auto to unsigned short.
Note that the warning is unjustified and probably a bug in this gcc version. See here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59124
1 parent f24b126 commit a0d296c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SU2_CFD/src/solvers/CTurbSASolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1440,7 +1440,7 @@ void CTurbSASolver::SetDES_LengthScale(CSolver **solver, CGeometry *geometry, CC
14401440

14411441
for (const auto jPoint : geometry->nodes->GetPoints(iPoint)) {
14421442
const auto coord_j = geometry->nodes->GetCoord(jPoint);
1443-
for (auto iDim = 0u; iDim < nDim; iDim++){
1443+
for (unsigned short iDim = 0u; iDim < nDim; iDim++){
14441444
const su2double deltaAux = abs(coord_j[iDim] - coord_i[iDim]);
14451445
delta[iDim] = max(delta[iDim], deltaAux);
14461446
}

0 commit comments

Comments
 (0)