From: tcclevenger Date: Wed, 17 Jul 2019 15:20:21 +0000 (-0600) Subject: fix X-Git-Tag: v9.2.0-rc1~1377^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcad3da84452bba3e73b61f46fb8e88101a4f5de;p=dealii.git fix --- diff --git a/include/deal.II/base/tensor.h b/include/deal.II/base/tensor.h index 4b2f5f2fab..fb9526d226 100644 --- a/include/deal.II/base/tensor.h +++ b/include/deal.II/base/tensor.h @@ -1930,7 +1930,7 @@ DEAL_II_CONSTEXPR inline DEAL_II_ALWAYS_INLINE typename Tensor::type>::tensor_type - result; + result{}; TensorAccessors::internal:: ReorderedIndexView<0, rank_2, const Tensor> @@ -2005,7 +2005,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; } @@ -2113,7 +2113,7 @@ DEAL_II_CONSTEXPR inline typename Tensor::type>::tensor_type - result; + result{}; TensorAccessors::contract<2, rank_1, rank_2, dim>(result, reord_3, reord_4); return result; } @@ -2138,7 +2138,7 @@ DEAL_II_CONSTEXPR inline DEAL_II_ALWAYS_INLINE scalar_product(const Tensor & left, const Tensor &right) { - typename ProductType::type result; + typename ProductType::type result{}; TensorAccessors::contract(result, left, right); return result; } @@ -2209,7 +2209,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; }