diff --git a/src/webots/maths/WbMathsUtilities.cpp b/src/webots/maths/WbMathsUtilities.cpp index edfcf16d43a..62fdca500c2 100644 --- a/src/webots/maths/WbMathsUtilities.cpp +++ b/src/webots/maths/WbMathsUtilities.cpp @@ -107,7 +107,11 @@ int WbMathsUtilities::convexHull(const QVector &points, QVector iMin = i; } + // Ignore false positive warning produced by some versions of GCC. +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstringop-overflow" QVector index(size); +#pragma GCC diagnostic pop for (i = 0; i < size; ++i) index[i] = i;