From: Daniel Arndt Date: Fri, 14 May 2021 12:57:10 +0000 (-0400) Subject: Avoid warning in MatrixFreeTools::compute_diagonal X-Git-Tag: v9.3.0-rc1~76^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d778e173a1bfbf4ae80cd6adc7e9dfa39a019627;p=dealii.git Avoid warning in MatrixFreeTools::compute_diagonal --- diff --git a/include/deal.II/matrix_free/tools.h b/include/deal.II/matrix_free/tools.h index dec6d3bc59..22f11b0ec2 100644 --- a/include/deal.II/matrix_free/tools.h +++ b/include/deal.II/matrix_free/tools.h @@ -611,7 +611,7 @@ namespace MatrixFreeTools // initialize vector matrix_free.initialize_dof_vector(diagonal_global, dof_no); - int dummy; + int dummy = 0; matrix_free.template cell_loop( [&](const MatrixFree &matrix_free,