diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorPadding.h b/unsupported/Eigen/CXX11/src/Tensor/TensorPadding.h index 1f066b7c7..647bcf108 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorPadding.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorPadding.h @@ -219,6 +219,7 @@ struct TensorEvaluator, Device #if defined(EIGEN_HAS_INDEX_LIST) return internal::index_pair_first_statically_eq(dim_index, 0); #else + EIGEN_UNUSED_VARIABLE(dim_index); return false; #endif } @@ -228,6 +229,7 @@ struct TensorEvaluator, Device #if defined(EIGEN_HAS_INDEX_LIST) return internal::index_pair_second_statically_eq(dim_index, 0); #else + EIGEN_UNUSED_VARIABLE(dim_index); return false; #endif }