From: Rob Savoye Date: Sun, 20 Mar 2005 21:37:56 +0000 (+0000) Subject: from Mark Kettenis X-Git-Tag: upstream/1.6.2~414 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb7e32ad9124de522e154d00213b177997791b81;p=platform%2Fupstream%2Fdejagnu.git from Mark Kettenis * lib/target.exp (prune_warnings): Add linker warning patterns for OpenBSD. --- diff --git a/ChangeLog b/ChangeLog index 4e00437..c66425c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-03-20 Mark Kettenis + + * lib/target.exp (prune_warnings): Add linker warning patterns for + OpenBSD. + + 2005-01-29 Hans-Peter Nilsson * baseboards/cris-sim.exp: New file. 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