From d8a64df8863dc4adbb38b66847c61429b02c2cac Mon Sep 17 00:00:00 2001 From: Houtan Bastani <houtan@dynare.org> Date: Mon, 16 Sep 2013 17:24:17 -0400 Subject: [PATCH] nostrict option works for endval too --- doc/dynare.texi | 2 +- preprocessor/ParsingDriver.cc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/dynare.texi b/doc/dynare.texi index ca8de288e5..0dcd351c06 100644 --- a/doc/dynare.texi +++ b/doc/dynare.texi @@ -788,7 +788,7 @@ the Macro directive @code{@@#define} in a model file, @pxref{Macro-processing la Allows Dynare to issue a warning and continue processing when @enumerate @item there are more endogenous variables than equations -@item an undeclared symbol is assigned in @code{initval} +@item an undeclared symbol is assigned in @code{initval} or @code{endval} @end enumerate @end table diff --git a/preprocessor/ParsingDriver.cc b/preprocessor/ParsingDriver.cc index c0efb2a270..38bf5a782e 100644 --- a/preprocessor/ParsingDriver.cc +++ b/preprocessor/ParsingDriver.cc @@ -404,7 +404,8 @@ ParsingDriver::init_val(string *name, expr_t rhs) if (nostrict) if (!mod_file->symbol_table.exists(*name)) { - warnings << "WARNING: discarding '" << *name << "' not recognized in initval statement" << endl; + warnings << "WARNING: discarding '" << *name + << "' not recognized in initval or endval statement" << endl; delete name; return; } -- GitLab