Skip to content

Commit

Permalink
THRIFT-5198 Fix certain Visual Studio hints in generated netstd code
Browse files Browse the repository at this point in the history
Client: netstd
Patch: Jens Geyer
  • Loading branch information
Jens-G committed Dec 9, 2020
1 parent 10f2556 commit 494a845
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions compiler/cpp/src/thrift/generate/t_netstd_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,10 @@ void t_netstd_generator::reset_indent() {

void t_netstd_generator::start_netstd_namespace(ostream& out)
{
out << "#pragma warning disable IDE1006 // parts of the code use IDL spelling" << endl;
out << "#pragma warning disable IDE0079 // remove unnecessary pragmas" << endl
<< "#pragma warning disable IDE1006 // parts of the code use IDL spelling" << endl
<< endl;

if (!namespace_name_.empty())
{
out << "namespace " << namespace_name_ << endl;
Expand All @@ -347,7 +350,6 @@ void t_netstd_generator::end_netstd_namespace(ostream& out)
{
scope_down(out);
}
out << "#pragma warning restore IDE1006" << endl;
}

string t_netstd_generator::netstd_type_usings() const
Expand Down

0 comments on commit 494a845

Please sign in to comment.