Cleanup: quiet compiler warning

For some reason this resulted in a unused-variable warning (on gcc).
Think we had such false positives before when `constexpr` was used.
This commit is contained in:
Jacques Lucke 2023-01-06 18:04:41 +01:00
parent 34b24fb602
commit 302cb349c7
1 changed files with 1 additions and 1 deletions

View File

@ -508,7 +508,7 @@ template<typename T, int NumCol, int NumRow, typename VectorT>
using MatT = MatBase<T, NumCol, NumRow>;
BLI_STATIC_ASSERT(VectorT::type_length <= MatT::col_len - 1,
"Translation should be at least 1 column less than the matrix.");
static constexpr int location_col = MatT::col_len - 1;
constexpr int location_col = MatT::col_len - 1;
/* Avoid multiplying the last row if it exists.
* Allows using non square matrices like float3x2 and saves computation. */
using IntermediateVecT =