From: David Wells <drwells@email.unc.edu>
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=refs%2Fpull%2F8071%2Fhead;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<double, 12ul>::_M_elems'
[-Wmissing-field-initializers]
         std::array<double, GeometryInfo<3>::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<double, GeometryInfo<3>::lines_per_cell> weights_lines{};
+        std::array<double, GeometryInfo<3>::lines_per_cell> weights_lines;
+        std::fill(weights_lines.begin(), weights_lines.end(), 0.0);
 
         // start with the contributions of the faces
         std::array<double, GeometryInfo<2>::vertices_per_cell>          weights;