from Mark Kettenis <kettenis@gnu.org>
authorRob Savoye <rob@welcomehome.org>
Sun, 20 Mar 2005 21:37:56 +0000 (21:37 +0000)
committerRob Savoye <rob@welcomehome.org>
Sun, 20 Mar 2005 21:37:56 +0000 (21:37 +0000)
* lib/target.exp (prune_warnings): Add linker warning patterns for
OpenBSD.

ChangeLog
lib/target.exp

index 4e00437..c66425c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-03-20  Mark Kettenis  <kettenis@gnu.org>
+
+       * lib/target.exp (prune_warnings): Add linker warning patterns for
+       OpenBSD.
+
+
 2005-01-29  Hans-Peter Nilsson  <hp@axis.com>
        * baseboards/cris-sim.exp: New file.
 
index fe4b714..8dca7ce 100644 (file)
@@ -1,5 +1,4 @@
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-# 2001, 2002, 2003 Free Software Foundation, Inc.
+# Copyright (C) 1992, 1993 - 2005 Free Software Foundation, Inc.
 #
 # This file is part of DejaGnu.
 #
@@ -267,6 +266,9 @@ proc prune_warnings { 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
 
+    # Or the OpenBSD ones.
+    regsub -all "(^|\n)(\[^\n\]*: warning: \[^\n\]* is often 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
      regsub -all "(^|\n)\[^\n\]*: In function\[^\n\]*\n\[^\n\]\[^\n\]*the use of \[^\n\]* is dangerous, better use \[^\n\]*" $text "" text