Skip to content

Commit

Permalink
Only suppress warning for versions of GCC where it exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
brettle committed Jul 28, 2024
1 parent bae372a commit 3a42f3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/webots/maths/WbMathsUtilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ int WbMathsUtilities::convexHull(const QVector<WbVector2> &points, QVector<int>

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

0 comments on commit 3a42f3b

Please sign in to comment.