OSDN Git Service

* lib/target.exp (prune_warnings): Add two more linker
authorthorpej <thorpej>
Sat, 14 Jun 2003 00:11:31 +0000 (00:11 +0000)
committerthorpej <thorpej>
Sat, 14 Jun 2003 00:11:31 +0000 (00:11 +0000)
warning patterns for warnings generated by modern verions
of NetBSD.

dejagnu/ChangeLog
dejagnu/lib/target.exp

index 3d1dc3f..924e61b 100644 (file)
@@ -1,3 +1,9 @@
+2003-06-13  Jason Thorpe  <thorpej@wasabisystems.com>
+
+       * lib/target.exp (prune_warnings): Add two more linker
+       warning patterns for warnings generated by modern verions
+       of NetBSD.
+
 2003-06-10  Alan Modra  <amodra@bigpond.net.au>
 
        * lib/target.exp (prune_warnings): Correct pic/PIC regexp.
index 6b3eb0b..5b3644a 100644 (file)
@@ -262,6 +262,8 @@ proc prune_warnings { text } {
     regsub -all "(^|\n)(ld(|32|64): Giving up.*Use -wall\[^\n\]*\n?)+" $text "\\1" text
 
     # Or the NetBSD ones.
+    regsub -all "(^|\n)(\[^\n\]*: In function\[^\n\]*\n\[^\n\]\[^\n\]*warning: this program uses \[^\n\]*)" $text "\\1" text
+    regsub -all "(^|\n)(\[^\n\]*: In function\[^\n\]*\n\[^\n\]\[^\n\]*warning: reference to compatibility \[^\n\]*)" $text "\\1" text
     regsub -all "(^|\n)(\[^\n\]*:\[0-9\]+: warning: \[^\n\]* possibly used unsafely, use \[^\n\]*\n?)" $text "\\1" text
     regsub -all "(^|\n)(\[^\n\]*: warning: reference to compatibility glob\[^\n\]*\n?)" $text "\\1" text