mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-13 12:19:12 +08:00
Fix a unused-var warning
This commit is contained in:
parent
ca5c12587b
commit
1dd3d89818
@ -839,6 +839,7 @@ struct block_evaluator<ArgType, BlockRows, BlockCols, InnerPanel, /* HasDirectAc
|
|||||||
{
|
{
|
||||||
// TODO: should check for smaller packet types once we can handle multi-sized packet types
|
// TODO: should check for smaller packet types once we can handle multi-sized packet types
|
||||||
const int AlignBytes = int(packet_traits<Scalar>::size) * sizeof(Scalar);
|
const int AlignBytes = int(packet_traits<Scalar>::size) * sizeof(Scalar);
|
||||||
|
EIGEN_ONLY_USED_FOR_DEBUG(AlignBytes)
|
||||||
// FIXME this should be an internal assertion
|
// FIXME this should be an internal assertion
|
||||||
eigen_assert(EIGEN_IMPLIES(evaluator<XprType>::Flags&AlignedBit, (size_t(block.data()) % AlignBytes) == 0) && "data is not aligned");
|
eigen_assert(EIGEN_IMPLIES(evaluator<XprType>::Flags&AlignedBit, (size_t(block.data()) % AlignBytes) == 0) && "data is not aligned");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user