From a13f9055a6e91ab15b5a30cb5cf6bd1593371c87 Mon Sep 17 00:00:00 2001 From: kronbichler Date: Tue, 20 Nov 2012 15:03:39 +0000 Subject: [PATCH] Fix warning with clang. git-svn-id: https://svn.dealii.org/trunk@27592 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/lac/trilinos_parallel_block_vector.h | 3 ++- deal.II/include/deal.II/lac/trilinos_vector_base.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/deal.II/include/deal.II/lac/trilinos_parallel_block_vector.h b/deal.II/include/deal.II/lac/trilinos_parallel_block_vector.h index c95fb17efd..6090f6d4d3 100644 --- a/deal.II/include/deal.II/lac/trilinos_parallel_block_vector.h +++ b/deal.II/include/deal.II/lac/trilinos_parallel_block_vector.h @@ -462,7 +462,8 @@ namespace TrilinosWrappers void BlockVector::compress (const Epetra_CombineMode last_action) { - ::dealii::VectorOperation::values last_action_; + ::dealii::VectorOperation::values last_action_ = + ::dealii::VectorOperation::unknown; if (last_action == Add) last_action_ = ::dealii::VectorOperation::add; else if (last_action == Insert) diff --git a/deal.II/include/deal.II/lac/trilinos_vector_base.h b/deal.II/include/deal.II/lac/trilinos_vector_base.h index f3a7bee54a..9fe33b8806 100644 --- a/deal.II/include/deal.II/lac/trilinos_vector_base.h +++ b/deal.II/include/deal.II/lac/trilinos_vector_base.h @@ -1224,7 +1224,8 @@ namespace TrilinosWrappers void VectorBase::compress (const Epetra_CombineMode last_action) { - ::dealii::VectorOperation::values last_action_; + ::dealii::VectorOperation::values last_action_ = + ::dealii::VectorOperation::unknown; if (last_action == Add) last_action_ = ::dealii::VectorOperation::add; else if (last_action == Insert) -- 2.39.5