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 hides warnings #72

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
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
5 changes: 2 additions & 3 deletions XSC/be/CXX/Generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,12 @@ generate (po::variables_map const& vm, Schema& schema, fs::path const& file_path
std::string ixx_expr (vm["cxx-inline-regex"].as<std::string> ());
std::string cxx_expr (vm["cxx-source-regex"].as<std::string> ());


//Output file names are named <name>.<suffix>
// Output file names are named <name>.<suffix>
std::string hxx_name (regex::perl_s (name, hxx_expr) + hxx_suffix);
std::string ixx_name (regex::perl_s (name, ixx_expr) + ixx_suffix);
std::string cxx_name (regex::perl_s (name, cxx_expr) + cxx_suffix);

//File handlers are created for each file name
// File handlers are created for each file name
fs::path hxx_path (hxx_name);
fs::path ixx_path (ixx_name);
fs::path cxx_path (cxx_name);
Expand Down
2 changes: 1 addition & 1 deletion XSC/be/CXX/Header.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ generate_header (Context& ctx,

if (ctx.cpp11())
{
ctx.os << "#include \"tao/x11/stddef.h\"" << endl;
ctx.os << "#include \"tao/x11/base/stddef.h\"" << endl;
}

Traversal::Schema traverser;
Expand Down
6 changes: 3 additions & 3 deletions XSC/be/CXX/Source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1145,8 +1145,8 @@ namespace
<< endl;

os << scope << "::" << endl
<< name << " (" << xml_element_type << " const& e)" << endl
<< ":" << "Base (e)"
<< name << " (" << xml_element_type << " const& element)" << endl
<< ":" << "Base (element)"
<< "{"
<< endl;
}
Expand All @@ -1161,7 +1161,7 @@ namespace

if (he || ha)
{
os << parser_type << " p (e);"
os << parser_type << " p (element);"
<< endl;

if (he)
Expand Down