1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/cad/librecad
Jason E. Hale 9fe9575a92 cad/librecad: Fix orthogonal and rel angle tools
When using Tools > Line > Orthogonal or Tools > Line > Relative angle,
it is not possible to select the base entity.

Apparently, the code works with GCC, but Clang warns:
In file included from actions/rs_actiondrawlinerelangle.cpp:27:
actions/rs_actiondrawlinerelangle.h:116:53: warning: array backing local initializer list 'enTypeList' will be destroyed at the end of the full-expression [-Wdangling]
    const EntityTypeList enTypeList = EntityTypeList{RS2::EntityLine, RS2::EntityArc, RS2::EntityCircle,RS2::EntityEllipse};

actions/rs_actiondrawlinerelangle.cpp:41:28: warning: backing array for 'std::initializer_list' member 'enTypeList' is a temporary object whose lifetime is shorter than the lifetime of the constructed object [-Wdangling-field]
RS_ActionDrawLineRelAngle::RS_ActionDrawLineRelAngle(

Patch reverts upstream commits eb2e146 [1] and d0a0ef2 [2] which were
intended to fix the build with the now unsupported GCC 9.

[1] eb2e1465bb
[2] d0a0ef284b

Reported by:	slovkam u sebi <slovkamusebi@protonmail.com> (via private mail)
2022-10-27 21:52:51 -04:00
..
distinfo cad/librecad: Fix orthogonal and rel angle tools 2022-10-27 21:52:51 -04:00
Makefile cad/librecad: Fix orthogonal and rel angle tools 2022-10-27 21:52:51 -04:00
pkg-descr Remove WWW entries moved into port Makefiles 2022-09-07 23:58:51 +02:00
pkg-plist