From ba61bcf0620d32f4dbdd74d2abdb8ced85c27e1a Mon Sep 17 00:00:00 2001
From: Dmitri Naumov <dmitri.naumov@ufz.de>
Date: Fri, 30 Jun 2017 16:19:29 +0200
Subject: [PATCH] [NL] Extrp; Change initialization of CachedData.

From the standard: If the initializer list has no elements and T is
a class type with a default ctor, the object is value-initialized.

The warning appearing in gcc-4.9 is due to a c++11 defect
fixed in
http://open-std.org/JTC1/SC22/WG21/docs/cwg_defects.html#1324
which points to
http://open-std.org/JTC1/SC22/WG21/docs/cwg_defects.html#1301.

The warning is fixed in later versions of gcc:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55805
---
 NumLib/Extrapolation/LocalLinearLeastSquaresExtrapolator.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/NumLib/Extrapolation/LocalLinearLeastSquaresExtrapolator.cpp b/NumLib/Extrapolation/LocalLinearLeastSquaresExtrapolator.cpp
index 5c5a15784ef..29c973ae10a 100644
--- a/NumLib/Extrapolation/LocalLinearLeastSquaresExtrapolator.cpp
+++ b/NumLib/Extrapolation/LocalLinearLeastSquaresExtrapolator.cpp
@@ -97,7 +97,7 @@ void LocalLinearLeastSquaresExtrapolator::extrapolateElement(
            "integration points.");
 
     auto const pair_it_inserted = _qr_decomposition_cache.emplace(
-        std::make_pair(num_nodes, num_int_pts), CachedData{{}});
+        std::make_pair(num_nodes, num_int_pts), CachedData{});
 
     auto& cached_data = pair_it_inserted.first->second;
     if (pair_it_inserted.second)
-- 
GitLab