changeset 22121:879f297f3194

Retain at least "all" in warning list (bug #47543) * error.cc (set_warning_option): only remove items that are not "all".
author Lachlan Andrew <lachlanbis@gmail.com>
date Sun, 27 Mar 2016 14:47:14 +1100
parents 5f91c1e89a98
children bb4a05cb4a02
files libinterp/corefcn/error.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/error.cc	Fri Jul 15 12:42:59 2016 -0400
+++ b/libinterp/corefcn/error.cc	Sun Mar 27 14:47:14 2016 +1100
@@ -1362,7 +1362,7 @@
           // for "all" is same as arg1, we can simply remove the item
           // from the list.
 
-          if (state == all_state)
+          if (state == all_state && ident != "all")
             {
               for (i = i + 1; i < nel; i++)
                 {