From: kronbichler Date: Tue, 20 Nov 2012 15:03:39 +0000 (+0000) Subject: Fix warning with clang. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a13f9055a6e91ab15b5a30cb5cf6bd1593371c87;p=dealii-svn.git Fix warning with clang. git-svn-id: https://svn.dealii.org/trunk@27592 0785d39b-7218-0410-832d-ea1e28bc413d --- 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)