[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/12017] Would like to disable compiler warning re use of tmpnam
From: |
slave2bob at yahoo dot com |
Subject: |
[Bug ld/12017] Would like to disable compiler warning re use of tmpnam |
Date: |
Mon, 16 Jan 2012 04:36:57 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=12017
Kib <slave2bob at yahoo dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |slave2bob at yahoo dot com
--- Comment #1 from Kib <slave2bob at yahoo dot com> 2012-01-16 04:36:57 UTC ---
(In reply to comment #0)
> When building code that calls tmpnam, the compiler generates this warning:
> "warning: the use of `tmpnam' is dangerous, better use `mkstemp'"
It is actually the linker, not the compiler, generating the warning. And it is
actually the C library, not the linker, that is the source of the warning:
http://forum.osdev.org/viewtopic.php?p=20043#p20043
Nevertheless, you're correct that there needs to be a way to disable this
warning, even if it's a mechanism that simply suppresses all warnings the
libraries recommend.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
- [Bug ld/12017] Would like to disable compiler warning re use of tmpnam,
slave2bob at yahoo dot com <=