diff options
author | Chris Johns <chrisj@rtems.org> | 2016-08-18 14:24:45 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2016-08-18 14:24:45 +1000 |
commit | 57e4172c26065511f7b89f31457d905d48312f25 (patch) | |
tree | 802627ede0ff6867f7a22500631765c5512d6f0a | |
parent | rtemstoolkit: Trace opening a macro file. (diff) | |
download | rtems-tools-57e4172c26065511f7b89f31457d905d48312f25.tar.bz2 |
tester: handle compile argument warnings.
-rwxr-xr-x | tester/rt/check.py | 12 |
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: |