mirror of
https://github.com/verilator/verilator.git
synced 2026-09-07 01:52:17 +02:00
Add NORETURN warning on functions without return values (#6534).
This commit is contained in:
@@ -2554,6 +2554,7 @@ AstFunc* V3Randomize::newRandomizeFunc(VMemberMap& memberMap, AstClass* nodep,
|
||||
? new AstVar{nodep->fileline(), VVarType::MEMBER, name,
|
||||
VFlagChildDType{}, dtypep}
|
||||
: new AstVar{nodep->fileline(), VVarType::MEMBER, name, dtypep};
|
||||
fvarp->fileline()->warnOff(V3ErrorCode::NORETURN, true);
|
||||
fvarp->lifetime(VLifetime::AUTOMATIC_EXPLICIT);
|
||||
fvarp->funcLocal(true);
|
||||
fvarp->funcReturn(true);
|
||||
|
||||
Reference in New Issue
Block a user