Skip to content

Commit ae8626d

Browse files
committed
Merge branch 'fix-windows-distro' into fix-Hinge2Joint-and-windows-distro
2 parents 1f9b2bc + 3a42f3b commit ae8626d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/webots/maths/WbMathsUtilities.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,13 @@ int WbMathsUtilities::convexHull(const QVector<WbVector2> &points, QVector<int>
107107
iMin = i;
108108
}
109109

110+
// Ignore false positive warning produced by some versions of GCC.
111+
#pragma GCC diagnostic push
112+
#if __GNUC__ >= 7
113+
#pragma GCC diagnostic ignored "-Wstringop-overflow"
114+
#endif
110115
QVector<int> index(size);
116+
#pragma GCC diagnostic pop
111117
for (i = 0; i < size; ++i)
112118
index[i] = i;
113119

0 commit comments

Comments
 (0)