This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/25509] can't voidify __attribute__((warn_unused_result))
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Dec 2005 23:53:48 -0000
- Subject: [Bug c/25509] can't voidify __attribute__((warn_unused_result))
- References: <bug-25509-3563@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from joseph at codesourcery dot com 2005-12-20 23:53 -------
Subject: Re: New: can't voidify __attribute__((warn_unused_result))
On Tue, 20 Dec 2005, mueller at kde dot org wrote:
> casting to (void) doesn't avoid the unused_result warning. testcase:
Why do you think this is a bug? warn_unused_result is for cases where
"not checking the result is either a security problem or always a bug".
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509