From: Wolfgang Bangerth Date: Wed, 6 Nov 2013 12:40:36 +0000 (+0000) Subject: Initialize a variable to avoid a warning. X-Git-Tag: v8.1.0~378 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d5a2786d1097da8ea35a683eb3984bc32473e54;p=dealii.git Initialize a variable to avoid a warning. git-svn-id: https://svn.dealii.org/trunk@31562 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/lac/sparse_matrix.h b/deal.II/include/deal.II/lac/sparse_matrix.h index 79b71911ac..46a05ba90e 100644 --- a/deal.II/include/deal.II/lac/sparse_matrix.h +++ b/deal.II/include/deal.II/lac/sparse_matrix.h @@ -1492,7 +1492,9 @@ public: * elements in a row are written in ascending column order. */ template - void print (STREAM &out, bool across=false, bool diagonal_first=true) const; + void print (STREAM &out, + const bool across = false, + const bool diagonal_first = true) const; /** * Print the matrix in the usual format, i.e. as a matrix and not as a list @@ -2474,13 +2476,15 @@ SparseMatrix::end (const size_type r) template template inline -void SparseMatrix::print (STREAM &out, bool across, bool diagonal_first) const +void SparseMatrix::print (STREAM &out, + const bool across, + const bool diagonal_first) const { Assert (cols != 0, ExcNotInitialized()); Assert (val != 0, ExcNotInitialized()); bool hanging_diagonal = false; - number diagonal; + number diagonal = number(); for (size_type i=0; irows; ++i) {