Mercurial > hg > octave-nkf
diff src/error.cc @ 3489:cbee5fbb696d
[project @ 2000-01-28 09:14:32 by jwe]
author | jwe |
---|---|
date | Fri, 28 Jan 2000 09:14:34 +0000 |
parents | 9610d364e444 |
children | fc5eac74640d |
line wrap: on
line diff
--- a/src/error.cc +++ b/src/error.cc @@ -46,6 +46,9 @@ // Current error state. int error_state = 0; +// Current warning state. +int warning_state = 0; + // Tell the error handler whether to print messages, or just store // them for later. Used for handling errors in eval() and // the `unwind_protect' statement. @@ -171,6 +174,7 @@ { va_list args; va_start (args, fmt); + warning_state = 1; verror ("warning", fmt, args); va_end (args); }