contrib/check-code.py
branchstable
changeset 20005 22154ec6fb8b
parent 19999 169cb9e47f8e
child 20012 a1d88278beff
--- a/contrib/check-code.py	Wed Nov 13 16:46:46 2013 -0200
+++ b/contrib/check-code.py	Sat Nov 09 10:21:20 2013 +0100
@@ -467,6 +467,8 @@
             else:
                 p, msg = pat
                 ignore = None
+            if i >= nerrs:
+                msg = "warning: " + msg
 
             pos = 0
             n = 0
@@ -500,8 +502,7 @@
                         bl, bu, br = blamecache[n]
                         if bl == l:
                             bd = '%s@%s' % (bu, br)
-                if i >= nerrs:
-                    msg = "warning: " + msg
+
                 errors.append((f, lineno and n + 1, l, msg, bd))
                 result = False