Skip to content

Commit f6218a3

Browse files
committed
Suppress false warning produced by recent GCC version.
1 parent 1f9b2bc commit f6218a3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/webots/maths/WbMathsUtilities.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,11 @@ 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+
#pragma GCC diagnostic ignored "-Wstringop-overflow"
110113
QVector<int> index(size);
114+
#pragma GCC diagnostic pop
111115
for (i = 0; i < size; ++i)
112116
index[i] = i;
113117

0 commit comments

Comments
 (0)