diff --git a/scripts/update_suite.rb b/scripts/update_suite.rb index 8817ef599a..2722b3ddb5 100755 --- a/scripts/update_suite.rb +++ b/scripts/update_suite.rb @@ -171,7 +171,7 @@ def collect_warnings when /^ on line \d+ $/ then next # dead line warnings shouldn't count (used for unreachability with NOWARN) when /^ on lines \d+..\d+ $/ then next # dead line warnings shouldn't count (used for unreachability with NOWARN) else "other" - end + end oldwarn = warnings[i] if oldwarn.nil? then warnings[i] = thiswarn