mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
fix for -O C++ lambda functions reporting errors/warnings
This commit is contained in:
parent
6e0ce17c22
commit
e2646f9752
1 changed files with 1 additions and 0 deletions
|
@ -144,6 +144,7 @@ void CPPCompile::DeclareSubclass(const FuncTypePtr& ft, const ProfileFunc* pf, c
|
||||||
StartBlock();
|
StartBlock();
|
||||||
|
|
||||||
Emit("flow = FLOW_RETURN;");
|
Emit("flow = FLOW_RETURN;");
|
||||||
|
Emit("f->SetOnlyCall(ce.get());");
|
||||||
|
|
||||||
if ( in_hook ) {
|
if ( in_hook ) {
|
||||||
Emit("if ( ! %s(%s) )", fname, args);
|
Emit("if ( ! %s(%s) )", fname, args);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue