[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: |
nickc at redhat dot com |
Subject: |
[Bug ld/12017] Would like to disable compiler warning re use of tmpnam |
Date: |
Thu, 19 Jan 2012 17:12:15 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=12017
Nick Clifton <nickc at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nickc at redhat dot com
--- Comment #2 from Nick Clifton <nickc at redhat dot com> 2012-01-19 17:12:15
UTC ---
As has been pointed out the warning is actually originating in the C library
that you are using, not the compiler or the linker.
There are a couple of workarounds that might be applicable to you:
*) You could post-process gcc's output and strip out the warning message.
*) You could remove the offending section (.gnu.warning) from the C library
(in the tmpman.o archive element).
*) You could use a custom linker script that discards the particular
.gnu.warning section.
Fixing the problem by disabling all warnings generated via .gnu.warning
sections is a very bad idea. These warnings are not meant to be ignored. The
specific tmpnam warning could be suppressed[1] but I am not particularly keen
on the idea.
Cheers
Nick
[1]: Search the linker sources for instances of warn_multiple_gp to see how
this has already been done for a different warning message.
--
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.