Hi all,

the below patch tries to silence a warning from the FreeBSD libc. This warning currently makes all the test cases fail where we make use of the tmpnam() function.

---
/usr/local/bin/ld: /tmp//ccBQaYlC.o: in function `main':
printf-2.c:(.text+0x8d): warning: warning: tmpnam() possibly used unsafely; consider using mkstemp()
---

With this patch, all the *printf* test cases in the gcc part are now passing.

What dou you think?

TIA,
Andreas

2019-09-30  Andreas Tobler  <andre...@gcc.gnu.org>

        * lib/prune.exp (prune_gcc_output): Silence a FreeBSD libc warning.

Index: lib/prune.exp
===================================================================
--- lib/prune.exp       (revision 276342)
+++ lib/prune.exp       (working copy)
@@ -73,6 +73,9 @@
     # Ignore harmless warnings from Xcode 4.0.
regsub -all "(^|\n)\[^\n\]*ld: warning: could not create compact unwind for\[^\n\]*" $text "" text

+    # Ignore FreeBSD libc warning
+ regsub -all "(^|\n)(\[^\n\])*warning: warning: \[^\n\]* possibly used unsafely; consider using \[^\n\]*\n" $text "" text
+
     # Call into multiline.exp to handle any multiline output directives.
     set text [handle-multiline-outputs $text]

Reply via email to