From b9e4ae654b646ecd0501dd6391dc7537239c82db Mon Sep 17 00:00:00 2001 From: Jon Rood Date: Fri, 20 Dec 2024 12:51:32 -0700 Subject: [PATCH] Fix yaml-cpp warnings in GCC. (#1337) --- src/NaluParsing.C | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/NaluParsing.C b/src/NaluParsing.C index a5b76a1368..74f007b0ed 100644 --- a/src/NaluParsing.C +++ b/src/NaluParsing.C @@ -447,8 +447,8 @@ void operator>>(const YAML::Node& node, std::map& mapName) { for (YAML::const_iterator i = node.begin(); i != node.end(); ++i) { - const YAML::Node& key = i->first; - const YAML::Node& value = i->second; + const YAML::Node key = i->first; + const YAML::Node value = i->second; std::string stringName; stringName = key.as(); bool data; @@ -461,8 +461,8 @@ void operator>>(const YAML::Node& node, std::map& mapName) { for (YAML::const_iterator i = node.begin(); i != node.end(); ++i) { - const YAML::Node& key = i->first; - const YAML::Node& value = i->second; + const YAML::Node key = i->first; + const YAML::Node value = i->second; std::string stringName; stringName = key.as(); double data; @@ -475,8 +475,8 @@ void operator>>(const YAML::Node& node, std::map& mapName) { for (YAML::const_iterator i = node.begin(); i != node.end(); ++i) { - const YAML::Node& key = i->first; - const YAML::Node& value = i->second; + const YAML::Node key = i->first; + const YAML::Node value = i->second; std::string stringName; stringName = key.as(); std::string data; @@ -491,8 +491,8 @@ operator>>( std::map>& mapName) { for (YAML::const_iterator i = node.begin(); i != node.end(); ++i) { - const YAML::Node& key = i->first; - const YAML::Node& targets = i->second; + const YAML::Node key = i->first; + const YAML::Node targets = i->second; std::string stringName; stringName = key.as(); @@ -515,8 +515,8 @@ operator>>( const YAML::Node& node, std::map>& mapName) { for (YAML::const_iterator i = node.begin(); i != node.end(); ++i) { - const YAML::Node& key = i->first; - const YAML::Node& targets = i->second; + const YAML::Node key = i->first; + const YAML::Node targets = i->second; std::string stringName; stringName = key.as(); @@ -890,8 +890,8 @@ convert::decode( sierra::nalu::expect_map(node, "user_function_name", optional); if (userFcnNode) { for (const_iterator i = userFcnNode.begin(); i != userFcnNode.end(); ++i) { - const Node& key = i->first; - const Node& value = i->second; + const Node key = i->first; + const Node value = i->second; std::string stringName = key.as(); std::string data = value.as(); wallData.bcDataSpecifiedMap_[stringName] = true; @@ -992,8 +992,8 @@ convert::decode( sierra::nalu::expect_map(node, "user_function_name", optional); if (userFcnNode) { for (const_iterator i = userFcnNode.begin(); i != userFcnNode.end(); ++i) { - const Node& key = i->first; - const Node& value = i->second; + const Node key = i->first; + const Node value = i->second; std::string stringName; stringName = key.as(); std::string data; @@ -1289,8 +1289,8 @@ convert>>::decode( std::map>& mapName) { for (const_iterator i = node.begin(); i != node.end(); ++i) { - const YAML::Node& key = i->first; - const YAML::Node& targets = i->second; + const YAML::Node key = i->first; + const YAML::Node targets = i->second; std::string stringName; stringName = key.as();