diff src/variables.cc @ 4452:f3c21a1d1c62

[project @ 2003-07-09 23:20:18 by jwe]
author jwe
date Wed, 09 Jul 2003 23:20:19 +0000
parents 4cc739e3cbd8
children 8952973c6837
line wrap: on
line diff
--- a/src/variables.cc
+++ b/src/variables.cc
@@ -439,12 +439,14 @@
 
 	  unwind_protect::begin_frame ("generate_struct_completions");
 
-	  unwind_protect_str (Vwarning_option);
+	  unwind_protect_int (error_state);
+	  unwind_protect_int (warning_state);
+
 	  unwind_protect_bool (discard_error_messages);
-	  unwind_protect_int (error_state);
+	  unwind_protect_bool (discard_warning_messages);
 
-	  Vwarning_option = "off";
 	  discard_error_messages = true;
+	  discard_warning_messages = true;
 
 	  octave_value tmp = eval_string (prefix, true, parse_status);