2005-04-28 Mark Kettenis <kettenis@gnu.org>
authorRob Savoye <rob@welcomehome.org>
Thu, 28 Apr 2005 17:08:40 +0000 (17:08 +0000)
committerRob Savoye <rob@welcomehome.org>
Thu, 28 Apr 2005 17:08:40 +0000 (17:08 +0000)
* lib/target.exp (prune_warnings): Add a few more linker
warning patterns for OpenBSD.

ChangeLog
lib/target.exp

index c66425c..390d978 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-04-28  Mark Kettenis  <kettenis@gnu.org>
+
+       * lib/target.exp (prune_warnings): Add a few more linker
+       warning patterns for OpenBSD.
+
 2005-03-20  Mark Kettenis  <kettenis@gnu.org>
 
        * lib/target.exp (prune_warnings): Add linker warning patterns for
index 9beb7f7..c86fc0c 100644 (file)
@@ -267,7 +267,8 @@ proc prune_warnings { text } {
     regsub -all "(^|\n)(\[^\n\]*: warning: reference to compatibility glob\[^\n\]*\n?)" $text "\\1" text
 
     # Or the OpenBSD ones.
-    regsub -all "(^|\n)(\[^\n\]*: In function\[^\n\]*\n\[^\n\]\[^\n\]*warning: \[^\n\]* is often misused, please use \[^\n\]*\n?)" $text "\\1" text
+    regsub -all "(^|\n)(\[^\n\]*: In function\[^\n\]*\n\[^\n\]\[^\n\]*warning: \[^\n\]* is (often|almost always) misused, please use \[^\n\]*\n?)" $text "\\1" text
+    regsub -all "(^|\n)(\[^\n\]*: warning: \[^\n\]* is (often|almost always) misused, please use \[^\n\]*\n?)" $text "\\1" text
 
     # GNU ld warns about functions marked as dangerous in GNU libc.
     regsub -all "(^|\n)\[^\n\]*: In function\[^\n\]*\n\[^\n\]\[^\n\]*is dangerous\[^\n\]*" $text "" text