From: David Wells Date: Fri, 10 May 2019 15:27:10 +0000 (-0400) Subject: Fix an array initialization. X-Git-Tag: v9.1.0-rc1~76^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db13ce131839ed4b9d89684ff55bf802afbc731b;p=dealii.git Fix an array initialization. GCC 4.8 complains about the brace initialization: ./source/grid/manifold_lib.cc:1804:75: warning: missing initializer for member 'std::array::_M_elems' [-Wmissing-field-initializers] std::array::lines_per_cell> weights_lines{}; ^ so be safe and initalize explicitly with fill. --- diff --git a/source/grid/manifold_lib.cc b/source/grid/manifold_lib.cc index eb0be274ff..0008707c0b 100644 --- a/source/grid/manifold_lib.cc +++ b/source/grid/manifold_lib.cc @@ -1801,7 +1801,8 @@ namespace // identify the weights for the lines to be accumulated (vertex // weights are set outside and coincide with the flat manifold case) - std::array::lines_per_cell> weights_lines{}; + std::array::lines_per_cell> weights_lines; + std::fill(weights_lines.begin(), weights_lines.end(), 0.0); // start with the contributions of the faces std::array::vertices_per_cell> weights;