This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/49863] -Wunused-result not behaving correctly


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49863

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-05-23 17:20:52 UTC ---
(In reply to comment #3)
> If I declare
> -D_FORTIFY_SOURCE=2 on the command line, the headers should not override me
> just because it is not an optimized build.  Is there some other unforeseen
> reason for this rule, such as that the compiler actually cannot check for this
> warning unless doing optimizations?

You should report the bug in glibc instead since GCC does not have control over
these headers.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]