You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, there is -Warray-bound warning. It appears when compile with gcc13 and -Wall -O2.
warning:
In file included from /home/qemu_ved/libs2geometry-0.11.1/src/s2/r2.h:22,
from /home/qemu_ved/libs2geometry-0.11.1/src/s2/s2edge_clipping.h:37,
from /home/qemu_ved/libs2geometry-0.11.1/src/s2/s2edge_clipping.cc:18:
In member function ‘T util::math::internal_vector::BasicVector<VecTemplate, T, N>::operator[](int) const [with VecTemplate = Vector2; T = double; long unsigned int N = 2]’,
inlined from ‘int S2::GetNextFace(int, const R2Point&, int, const S2PointUVW&, int)’ at /home/qemu_ved/libs2geometry-0.11.1/src/s2/s2edge_clipping.cc:195:25,
inlined from ‘void S2::GetFaceSegments(const S2Point&, const S2Point&, FaceSegmentVector*)’ at /home/qemu_ved/libs2geometry-0.11.1/src/s2/s2edge_clipping.cc:249:23:
/home/qemu_ved/libs2geometry-0.11.1/src/s2/util/math/vector.h:97:49: warning: array subscript 5 is outside array bounds of ‘S2::FaceSegment [1]’ [-Warray-bounds=]
97 | return static_cast<const D&>(*this).Data()[b];
| ^
/home/qemu_ved/libs2geometry-0.11.1/src/s2/s2edge_clipping.cc: In function ‘void S2::GetFaceSegments(const S2Point&, const S2Point&, FaceSegmentVector*)’:
/home/qemu_ved/libs2geometry-0.11.1/src/s2/s2edge_clipping.cc:212:15: note: at offset 40 into object ‘segment’ of size 40
212 | FaceSegment segment;
| ^~~~~~~
Hi, there is -Warray-bound warning. It appears when compile with gcc13 and
-Wall -O2
.warning:
build:
gcc version:
build_log.txt
The text was updated successfully, but these errors were encountered: