Skip to content
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
7 changes: 7 additions & 0 deletions src/mp/gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@ void Generate(kj::StringPtr src_prefix,
h << "#include <" << include_path << ".h>\n";
h << "#include <" << include_base << ".h>\n";
h << "#include <" << PROXY_DECL << ">\n\n";
h << "#if defined(__GNUC__) && !defined(__clang__)\n";
h << "#pragma GCC diagnostic push\n";
h << "#pragma GCC diagnostic ignored \"-Wsuggest-override\"\n";
h << "#endif\n";
h << "namespace mp {\n";

kj::StringPtr message_namespace;
Expand Down Expand Up @@ -552,6 +556,9 @@ void Generate(kj::StringPtr src_prefix,
inl << "#endif\n";

h << "} // namespace mp\n";
h << "#if defined(__GNUC__) && !defined(__clang__)\n";
h << "#pragma GCC diagnostic pop\n";
h << "#endif\n";
h << "#endif\n";
}

Expand Down