From 16ade2961e6803a21b80a4ae2b59cad4be56098b Mon Sep 17 00:00:00 2001 From: Uli Sack <usack@math.fu-berlin.de> Date: Tue, 20 Mar 2012 17:17:24 +0000 Subject: [PATCH] uuuaahsvn diff operators/sumoperator.hh missing 'return' statement; why the hell doesn't the compiler warn about it and produce actually working code when no optimization is done [[Imported from SVN: r5795]] --- dune/solvers/operators/sumoperator.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dune/solvers/operators/sumoperator.hh b/dune/solvers/operators/sumoperator.hh index e6e978b7..4e909c70 100644 --- a/dune/solvers/operators/sumoperator.hh +++ b/dune/solvers/operators/sumoperator.hh @@ -67,13 +67,13 @@ class SumOperator //! return the number of rows const size_t N() const { - sparse_matrix_->N(); + return sparse_matrix_->N(); } //! return the number of columns const size_t M() const { - sparse_matrix_->M(); + return sparse_matrix_->M(); } //! return one summand -- GitLab