fix for -O C++ lambda functions reporting errors/warnings

This commit is contained in:
Vern Paxson 2023-12-08 15:07:23 -05:00 committed by Arne Welzel
parent 6e0ce17c22
commit e2646f9752

View file

@ -144,6 +144,7 @@ void CPPCompile::DeclareSubclass(const FuncTypePtr& ft, const ProfileFunc* pf, c
StartBlock();
Emit("flow = FLOW_RETURN;");
Emit("f->SetOnlyCall(ce.get());");
if ( in_hook ) {
Emit("if ( ! %s(%s) )", fname, args);