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: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Dec 2005 10:59:18 -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 #11 from rguenth at gcc dot gnu dot org 2005-12-21 10:59 -------
Hm, we even check in the testsuite that we still warn for (void) foo():
check1 (); /* { dg-warning "ignoring return value of" } */
(void) check1 (); /* { dg-warning "ignoring return value of" } */
check1 (), bar (); /* { dg-warning "ignoring return value of" } */
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509