summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2016-08-18 14:24:45 +1000
committerChris Johns <chrisj@rtems.org>2016-08-18 14:24:45 +1000
commit57e4172c26065511f7b89f31457d905d48312f25 (patch)
tree802627ede0ff6867f7a22500631765c5512d6f0a
parentrtemstoolkit: Trace opening a macro file. (diff)
downloadrtems-tools-57e4172c26065511f7b89f31457d905d48312f25.tar.bz2
tester: handle compile argument warnings.
-rwxr-xr-xtester/rt/check.py12
1 files 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: