mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
all: Change to use Func::GetName()
This commit is contained in:
parent
71e9c8d436
commit
77b9510c8a
13 changed files with 29 additions and 31 deletions
|
@ -437,7 +437,7 @@ ValPtr ScriptFunc::Invoke(zeek::Args* args, Frame* parent) const {
|
|||
else if ( GetType()->Yield() && GetType()->Yield()->Tag() != TYPE_VOID && ! GetType()->ExpressionlessReturnOkay() &&
|
||||
(flow != FLOW_RETURN /* we fell off the end */ || ! result /* explicit return with no result */) &&
|
||||
! f->HasDelayed() )
|
||||
reporter->Warning("non-void function returning without a value: %s", Name());
|
||||
reporter->Warning("non-void function returning without a value: %s", GetName().c_str());
|
||||
|
||||
if ( result && g_trace_state.DoTrace() ) {
|
||||
ODesc d;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue