Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix yaml-cpp warnings in GCC #1337

Merged
merged 1 commit into from
Dec 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading