[rtems-tools commit] tester: handle compile argument warnings.

Chris Johns chrisj at rtems.org
Thu Aug 18 04:24:51 UTC 2016


Module:    rtems-tools
Branch:    master
Commit:    57e4172c26065511f7b89f31457d905d48312f25
Changeset: http://git.rtems.org/rtems-tools/commit/?id=57e4172c26065511f7b89f31457d905d48312f25

Author:    Chris Johns <chrisj at rtems.org>
Date:      Thu Aug 18 14:24:45 2016 +1000

tester: handle compile argument warnings.

---

 tester/rt/check.py | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/tester/rt/check.py b/tester/rt/check.py
index fcd7b55..76e6951 100755
--- a/tester/rt/check.py
+++ b/tester/rt/check.py
@@ -84,10 +84,14 @@ class warnings_counter:
                     w = w.replace(self.rtems, '')
                     if path.isabspath(w):
                         w = w[1:]
-                    w = '%s:%s:%s' % (w, ws[1], ws[2])
-                    if w not in self.warnings:
-                        self.warnings[w] = 0
-                    self.warnings[w] += 1
+                    #
+                    # Ignore compiler option warnings.
+                    #
+                    if len(ws) >= 3:
+                        w = '%s:%s:%s' % (w, ws[1], ws[2])
+                        if w not in self.warnings:
+                            self.warnings[w] = 0
+                        self.warnings[w] += 1
         log.output(text)
 
 class configuration:



More information about the vc mailing list