aboutsummaryrefslogtreecommitdiff
path: root/lib/target.exp
diff options
context:
space:
mode:
authorRob Savoye <rob@welcomehome.org>2005-03-20 21:37:56 +0000
committerRob Savoye <rob@welcomehome.org>2005-03-20 21:37:56 +0000
commitcb7e32ad9124de522e154d00213b177997791b81 (patch)
tree8d3826065326f0fd88da136d11911bcee0d9f1e7 /lib/target.exp
parentb9df76e6b7945e737d03f49c4a7f7e71d75ad5ed (diff)
downloaddejagnu-cb7e32ad9124de522e154d00213b177997791b81.zip
dejagnu-cb7e32ad9124de522e154d00213b177997791b81.tar.gz
dejagnu-cb7e32ad9124de522e154d00213b177997791b81.tar.bz2
from Mark Kettenis <kettenis@gnu.org>
* lib/target.exp (prune_warnings): Add linker warning patterns for OpenBSD.
Diffstat (limited to 'lib/target.exp')
-rw-r--r--lib/target.exp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/target.exp b/lib/target.exp
index fe4b714..8dca7ce 100644
--- a/lib/target.exp
+++ b/lib/target.exp
@@ -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