mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
Var: Add version to deprecated initialization
This has been added for Zeek 5.0, so mark it for removal in Zeek 6.1.
This commit is contained in:
parent
bb80d80218
commit
c1f51cbf2a
3 changed files with 5 additions and 4 deletions
|
@ -193,7 +193,8 @@ static void make_var(const IDPtr& id, TypePtr t, InitClass c, ExprPtr init,
|
|||
{
|
||||
// This can happen because the grammar allows any "init_class",
|
||||
// including none, to be followed by an expression.
|
||||
init->Warn("initialization not preceded by =/+=/-= is deprecated");
|
||||
// Remove in v6.1 (make an error)
|
||||
init->Warn("Remove in v6.1. Initialization not preceded by =/+=/-= is deprecated.");
|
||||
|
||||
// The historical instances of these, such as the
|
||||
// language/redef-same-prefixtable-idx.zeek btest, treat
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue