From f90f92678ecb9c409a23c9397e8903c460c0b188 Mon Sep 17 00:00:00 2001 From: aoliva Date: Tue, 15 Feb 2000 22:22:17 +0000 Subject: [PATCH] * lib/target.exp: Strip warnings about dangerous functions. --- dejagnu/ChangeLog | 4 ++++ dejagnu/lib/target.exp | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/dejagnu/ChangeLog b/dejagnu/ChangeLog index 31024c78ce..0270f330c0 100644 --- a/dejagnu/ChangeLog +++ b/dejagnu/ChangeLog @@ -1,3 +1,7 @@ +2000-02-15 Alexandre Oliva + + * lib/target.exp: Strip warnings about dangerous functions. + 1999-12-14 Geoff Keating * baseboards/rom68k-idp.exp: Don't pass -nostdlib to the IDP diff --git a/dejagnu/lib/target.exp b/dejagnu/lib/target.exp index 1671a07656..b4f876dd02 100644 --- a/dejagnu/lib/target.exp +++ b/dejagnu/lib/target.exp @@ -1,4 +1,4 @@ -# Copyright (C) 92, 93, 94, 95, 96, 97, 98, 1999 Free Software Foundation, Inc. +# Copyright (C) 92, 93, 94, 95, 96, 97, 98, 1999, 2000 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -261,6 +261,9 @@ proc prune_warnings { text } { regsub -all "(^|\n)(ld(|32|64): WARNING \[^\n\]*\n?)+" $text "\\1" text regsub -all "(^|\n)(ld(|32|64): Giving up.*Use -wall\[^\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\]*function is dangerous*\[^\n\]*" $text "" text + # It might be tempting to get carried away and delete blank lines, etc. # Just delete *exactly* what we're ask to, and that's it. return $text -- 2.11.0