This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/49863] -Wunused-result not behaving correctly
- From: "antomicx at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 27 Jul 2011 10:29:51 +0000
- Subject: [Bug c/49863] -Wunused-result not behaving correctly
- Auto-submitted: auto-generated
- References: <bug-49863-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49863
--- Comment #2 from antomicx at gmail dot com 2011-07-27 10:29:46 UTC ---
(In reply to comment #1)
> Because glibc annotates system with the attribute only if you use
> -D_FORTIFY_SOURCE=1 or higher, and then only if optimization is enabled:
I got it. Just out of curiosity, is this feature documented somewhere (apart
from source code, obviously ;-) )?
Thanks!