mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
Silent maybe-uninitialized warnings by gcc
This commit is contained in:
parent
6ec6bf0b0d
commit
2c2c114995
@ -137,6 +137,8 @@ namespace internal {
|
|||||||
template <typename Derived>
|
template <typename Derived>
|
||||||
struct coeff_visitor
|
struct coeff_visitor
|
||||||
{
|
{
|
||||||
|
// default initialization to avoid countless invalid maybe-uninitialized warnings by gcc
|
||||||
|
coeff_visitor() : row(-1), col(-1), res(0) {}
|
||||||
typedef typename Derived::Scalar Scalar;
|
typedef typename Derived::Scalar Scalar;
|
||||||
Index row, col;
|
Index row, col;
|
||||||
Scalar res;
|
Scalar res;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user