From 57e4172c26065511f7b89f31457d905d48312f25 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Thu, 18 Aug 2016 14:24:45 +1000 Subject: 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: -- cgit v1.2.3