mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-30 07:44:10 +08:00
Silenced a couple of compilation warnings
This commit is contained in:
parent
c1d87ec110
commit
1e2d046651
@ -23,6 +23,7 @@ struct static_val {
|
|||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE static_val(const T& v) {
|
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE static_val(const T& v) {
|
||||||
|
EIGEN_UNUSED_VARIABLE(v);
|
||||||
eigen_assert(v == n);
|
eigen_assert(v == n);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -169,6 +169,7 @@ template <typename T> class array<T, 0> {
|
|||||||
|
|
||||||
#if EIGEN_HAS_VARIADIC_TEMPLATES
|
#if EIGEN_HAS_VARIADIC_TEMPLATES
|
||||||
EIGEN_DEVICE_FUNC array(std::initializer_list<T> l) : dummy() {
|
EIGEN_DEVICE_FUNC array(std::initializer_list<T> l) : dummy() {
|
||||||
|
EIGEN_UNUSED_VARIABLE(l);
|
||||||
eigen_assert(l.size() == 0);
|
eigen_assert(l.size() == 0);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user