mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
-O gen-C++ fix for run-time warnings for "when" lambdas
This commit is contained in:
parent
d1c31927c4
commit
5c38f7637d
3 changed files with 7 additions and 1 deletions
|
@ -511,6 +511,7 @@ FuncTypeInfo::FuncTypeInfo(CPPCompile* _c, TypePtr _t) : AbstractTypeInfo(_c, st
|
|||
flavor = f->Flavor();
|
||||
params = f->Params();
|
||||
yield = f->Yield();
|
||||
expressionless_return_okay = f->ExpressionlessReturnOkay();
|
||||
|
||||
auto gi = c->RegisterType(params);
|
||||
if ( gi )
|
||||
|
@ -527,6 +528,7 @@ void FuncTypeInfo::AddInitializerVals(std::vector<std::string>& ivs) const {
|
|||
ivs.emplace_back(Fmt(c->TypeOffset(params)));
|
||||
ivs.emplace_back(Fmt(yield ? c->TypeOffset(yield) : -1));
|
||||
ivs.emplace_back(Fmt(static_cast<int>(flavor)));
|
||||
ivs.emplace_back(Fmt(static_cast<int>(expressionless_return_okay)));
|
||||
}
|
||||
|
||||
RecordTypeInfo::RecordTypeInfo(CPPCompile* _c, TypePtr _t) : AbstractTypeInfo(_c, std::move(_t)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue