mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
Improve "use of deprecated prototype" warning message
The location information now points out the place of the deprecated prototype instead of the location where the ID was initially declared (which may not itself be a deprecated prototype).
This commit is contained in:
parent
26b3d406b4
commit
ac1ec7668d
3 changed files with 4 additions and 3 deletions
|
@ -531,7 +531,8 @@ void begin_func(zeek::detail::IDPtr id, const char* module_name,
|
|||
}
|
||||
|
||||
if ( prototype->deprecated )
|
||||
t->Warn("use of deprecated prototype", id.get());
|
||||
t->Warn(fmt("use of deprecated '%s' prototype", id->Name()),
|
||||
prototype->args.get(), true);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue