This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] C testsuite, silence a FreeBSD libc warning
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Andreas Tobler <andreast-list at fgznet dot ch>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 30 Sep 2019 19:12:07 -0500
- Subject: Re: [PATCH] C testsuite, silence a FreeBSD libc warning
- References: <f283b0d6-f214-1732-7da6-2e6ba9971e3b@fgznet.ch> <20190930172052.GO15914@tucnak> <6a343199-581f-1479-98dc-f28c3072c344@fgznet.ch> <20190930174754.GP15914@tucnak>
On Mon, Sep 30, 2019 at 07:47:54PM +0200, Jakub Jelinek wrote:
> So, can you try just
> { dg-prune-output "warning: warning: \[^\n\r\]* possibly used unsafely; consider using" } */
> or if that doesn't work, with .* at start end end?
Or even just
{ dg-prune-output {(?n)warning: warning: .* possibly used unsafely; consider using} } */
(?n) means to match single lines only; . and bracket expressions using ^
will not match newlines if you use it.
("warning: " twice, btw?)
Segher