From: Daniel Arndt Date: Tue, 13 Aug 2019 19:00:18 +0000 (-0400) Subject: Add a few more value initializations X-Git-Tag: v9.2.0-rc1~1208^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1090db0c5cd5ac1b9cdf5d3ab1dd594e55200fc4;p=dealii.git Add a few more value initializations --- diff --git a/include/deal.II/base/tensor.h b/include/deal.II/base/tensor.h index 36fca103da..441411e9c2 100644 --- a/include/deal.II/base/tensor.h +++ b/include/deal.II/base/tensor.h @@ -1905,7 +1905,7 @@ DEAL_II_CONSTEXPR inline DEAL_II_ALWAYS_INLINE typename Tensor::type>::tensor_type - result; + result{}; TensorAccessors::internal:: ReorderedIndexView<0, rank_2, const Tensor> @@ -1980,7 +1980,7 @@ DEAL_II_CONSTEXPR inline DEAL_II_ALWAYS_INLINE typename Tensor::type>::tensor_type - result; + result{}; TensorAccessors::contract<1, rank_1, rank_2, dim>(result, reord_01, reord_02); return result; } @@ -2184,7 +2184,7 @@ DEAL_II_CONSTEXPR inline DEAL_II_ALWAYS_INLINE typename Tensor::type>::tensor_type - result; + result{}; TensorAccessors::contract<0, rank_1, rank_2, dim>(result, src1, src2); return result; }