[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
OpenBSD linker warnings
From: |
Mark Kettenis |
Subject: |
OpenBSD linker warnings |
Date: |
Sun, 20 Mar 2005 19:05:14 +0100 (CET) |
OpenBSD recently gained linker warnings for dangerous functions. This
patch makes sure they don't confuse any dejagnu tests. Tested with
the gdb testsuite on i386-unknown-openbsd3.6. Would be great if this
could be included in the next release.
Index: ChangeLog
from Mark Kettenis <address@hidden>
* lib/target.exp (prune_warnings): Add linker warning patterns for
OpenBSD.
Index: lib/target.exp
===================================================================
RCS file: /cvsroot/dejagnu/dejagnu/lib/target.exp,v
retrieving revision 1.16
diff -u -p -r1.16 target.exp
--- lib/target.exp 21 Apr 2004 16:50:23 -0000 1.16
+++ lib/target.exp 20 Mar 2005 18:02:09 -0000
@@ -267,6 +267,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\]*:\[0-9\]+: 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- OpenBSD linker warnings,
Mark Kettenis <=