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:
Arne Welzel 2023-03-17 15:43:36 +01:00
parent bb80d80218
commit c1f51cbf2a
3 changed files with 5 additions and 4 deletions

View file

@ -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