Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Shutting up a silly compiler warning



On Tue, Feb 29, 2000 at 08:39:54AM +0000, Bart Schaefer wrote:
> utils.o: In function `gettempname':
> utils.o(.text+0x1bfa): warning: mktemp() possibly used unsafely; consider
> using mkstemp()

Some more info: ld emits this warning (in ldmain.c(warning_callback), it looks
like) because lib/libc/stdio/mktemp.c contains

__warn_references(mktemp,
    "warning: mktemp() possibly used unsafely; consider using mkstemp()");

I don't see a way to suppress these offhand.

-- 
Jos Backus                          _/ _/_/_/  "Reliability means never
                                   _/ _/   _/   having to say you're sorry."
                                  _/ _/_/_/             -- D. J. Bernstein
                             _/  _/ _/    _/
Jos.Backus@xxxxxxxxxxxxxxxx  _/_/  _/_/_/      use Std::Disclaimer;



Messages sorted by: Reverse Date, Date, Thread, Author