Skip to content

Commit

Permalink
Suppress false warning produced by recent GCC version.
Browse files Browse the repository at this point in the history
  • Loading branch information
brettle committed Jul 28, 2024
1 parent 1f9b2bc commit f6218a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/webots/maths/WbMathsUtilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ int WbMathsUtilities::convexHull(const QVector<WbVector2> &points, QVector<int>
iMin = i;
}

// Ignore false positive warning produced by some versions of GCC.
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-overflow"
QVector<int> index(size);
#pragma GCC diagnostic pop
for (i = 0; i < size; ++i)
index[i] = i;

Expand Down

0 comments on commit f6218a3

Please sign in to comment.