diff options
author | Gael Guennebaud <g.gael@free.fr> | 2019-01-15 16:53:15 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2019-01-15 16:53:15 +0100 |
commit | 2c2c114995a1783883a882b83343a0533d2ebaf5 (patch) | |
tree | b923bab53875039750ae567580e5d174cdff7c41 /Eigen/src/Core/Visitor.h | |
parent | 6ec6bf0b0d405ec8c597368d089a292d12f9b39e (diff) |
Silent maybe-uninitialized warnings by gcc
Diffstat (limited to 'Eigen/src/Core/Visitor.h')
-rw-r--r-- | Eigen/src/Core/Visitor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Eigen/src/Core/Visitor.h b/Eigen/src/Core/Visitor.h index b11d87e9f..f67d83bd1 100644 --- a/Eigen/src/Core/Visitor.h +++ b/Eigen/src/Core/Visitor.h @@ -137,6 +137,8 @@ namespace internal { template <typename Derived> 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; Index row, col; Scalar res; |