This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [patch, libstdc++, testsuite] Modify tests to use tmpnam()
On Wed, 2010-03-03 at 14:57 -0800, Janis Johnson wrote:
> I had forgotten that GNU ld warns about use of tmpnam:
>
> warning: the use of `tmpnam' is dangerous, better use `mkstemp'
>
> It would be messy for the tests to turn off that warning since GNU ld
> isn't the only linker used with GCC. Other tests that use tmpnam are
> compile-only and do not link.
>
> Janis
Is this warning triggered by some flag? I ran the tests on Linux
systems as well as HP-UX ones and I didn't get any failures. I also
don't see warnings in my log file. The linux tests were done with the
ToT GNU linker.
Steve Ellcey
sje@cup.hp.com