Skip to content

Commit

Permalink
Fix yaml-cpp warnings in GCC. (#1337)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrood-nrel authored Dec 20, 2024
1 parent fc91d0a commit b9e4ae6
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/NaluParsing.C
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,8 @@ void
operator>>(const YAML::Node& node, std::map<std::string, bool>& 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>();
bool data;
Expand All @@ -461,8 +461,8 @@ void
operator>>(const YAML::Node& node, std::map<std::string, double>& 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>();
double data;
Expand All @@ -475,8 +475,8 @@ void
operator>>(const YAML::Node& node, std::map<std::string, std::string>& 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>();
std::string data;
Expand All @@ -491,8 +491,8 @@ operator>>(
std::map<std::string, std::vector<std::string>>& 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<std::string>();

Expand All @@ -515,8 +515,8 @@ operator>>(
const YAML::Node& node, std::map<std::string, std::vector<double>>& 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<std::string>();

Expand Down Expand Up @@ -890,8 +890,8 @@ convert<sierra::nalu::WallUserData>::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>();
std::string data = value.as<std::string>();
wallData.bcDataSpecifiedMap_[stringName] = true;
Expand Down Expand Up @@ -992,8 +992,8 @@ convert<sierra::nalu::InflowUserData>::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>();
std::string data;
Expand Down Expand Up @@ -1289,8 +1289,8 @@ convert<std::map<std::string, std::vector<std::string>>>::decode(
std::map<std::string, std::vector<std::string>>& 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<std::string>();

Expand Down

0 comments on commit b9e4ae6

Please sign in to comment.