diff options
-rw-r--r-- | testsuite/driver/testlib.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py index 57bfe82bae..9fa61bc280 100644 --- a/testsuite/driver/testlib.py +++ b/testsuite/driver/testlib.py @@ -2257,6 +2257,9 @@ def normalise_errmsg(s: str) -> str: s = re.sub('We will try though\.\.\..*\n','',s) # ignore warning about strip invalidating signatures s = re.sub('.*strip: changes being made to the file will invalidate the code signature in.*\n','',s) + # clang may warn about unused argument when used as assembler + s = re.sub('.*warning: argument unused during compilation:.*\n', '', s) + return s # normalise a .prof file, so that we can reasonably compare it against @@ -2340,6 +2343,8 @@ def normalise_output( s: str ) -> str: s = re.sub('We will try though\.\.\..*\n','',s) # ignore warning about strip invalidating signatures s = re.sub('.*strip: changes being made to the file will invalidate the code signature in.*\n','',s) + # clang may warn about unused argument when used as assembler + s = re.sub('.*warning: argument unused during compilation:.*\n', '', s) return s |