From db13ce131839ed4b9d89684ff55bf802afbc731b Mon Sep 17 00:00:00 2001 From: David Wells Date: Fri, 10 May 2019 11:27:10 -0400 Subject: [PATCH] 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. --- source/grid/manifold_lib.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5