diff --git a/doc/dynare.texi b/doc/dynare.texi
index ca8de288e5823f7cb2ee1ff58a594f7f4f6947e0..0dcd351c06da33df4e0f21a6dd6c8d2cf59535aa 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 c0efb2a27019a0280898fe988246c4f403264049..38bf5a782eddfcd836857778db078fa212ce0bd9 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;
       }