Deal with ABIWARN linker messages.

ok alek@
This commit is contained in:
kettenis 2005-03-25 15:42:15 +00:00
parent 644f32ce81
commit 85779f9436
2 changed files with 16 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.24 2005/02/13 16:20:38 alek Exp $ # $OpenBSD: Makefile,v 1.25 2005/03/25 15:42:15 kettenis Exp $
COMMENT= "framework to test programs" COMMENT= "framework to test programs"
DISTNAME= dejagnu-1.4.3 DISTNAME= dejagnu-1.4.3
PKGNAME= ${DISTNAME}p2 PKGNAME= ${DISTNAME}p3
CATEGORIES= devel CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=dejagnu/} MASTER_SITES= ${MASTER_SITE_GNU:=dejagnu/}

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-lib_target_exp,v 1.1 2005/03/25 15:42:15 kettenis Exp $
--- lib/target.exp.orig Fri Aug 30 05:54:28 2002
+++ lib/target.exp Fri Mar 25 15:42:20 2005
@@ -265,6 +265,10 @@ 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\]*: In function\[^\n\]*\n\[^\n\]\[^\n\]*warning: \[^\n\]* is often misused, please use \[^\n\]*\n?)" $text "\\1" text
+ 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\]*function is dangerous\[^\n\]*" $text "" text