Fix -Wpedantic on std::process.

This commit is contained in:
Wilson Snyder 2023-02-11 10:55:06 -05:00
parent 2bb2935924
commit 4d29487e75
2 changed files with 3 additions and 2 deletions

View File

@ -1711,7 +1711,8 @@ private:
}
void visit(AstTypedefFwd* nodep) override {
VSymEnt* const foundp = m_statep->getNodeSym(nodep)->findIdFallback(nodep->name());
if (!foundp && v3Global.opt.pedantic()) {
if (!foundp && v3Global.opt.pedantic()
&& nodep->name() != "process") { // Process is dangling as isn't implemented yet
// We only check it was ever really defined in pedantic mode, as it
// might have been in a header file referring to a module we never
// needed so there are false positives

View File

@ -17,7 +17,7 @@ else {
top_filename("t/t_mailbox.v");
compile(
verilator_flags2 => ["--exe --main --timing -Wall -DMAILBOX_T=std::mailbox"],
verilator_flags2 => ["--exe --main --timing -Wall --Wpedantic -DMAILBOX_T=std::mailbox"],
make_main => 0,
);