mirror of https://github.com/mosra/magnum.git
Browse Source
It seriously breaks RectangularMatrix::from() and related functions in subclasses and I don't have better solution for that yet. Hope newer GCCs fix this issue, because compiling with this option is a way to unoptimized hell. The breakage can be seen when Physics::AxisAlignedBox::applyTransformation() is called in loop from Physics::ObjectShapeGroup::setClean() (e.g. three AABBs in the group). Result is that the transformation doesn't get applied at all. I tried also these solutions without success: * Reimplementing from() to return (const) copy, so it doesn't alias original type (warnings suddenly disappear, but the problem persists). * Using __attribute__((__may_alias__)) on RectangularMatrix - doesn't help at all (even the warnings remain). * Using __attribute__((__may_alias__)) on all vector/matrix classes - causes compilation failure (non-matching function declarations and definitions due to vector/matrix parameters). Also tried to add it to all forward-declarations and typedefs, but it causes only a few more warnings about ignored attribute.
1 changed files with 6 additions and 0 deletions
Loading…
Reference in new issue