[Bug c/25509] can't voidify __attribute__((warn_unused_result))

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Dec 21 10:59:00 GMT 2005



------- 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



More information about the Gcc-bugs mailing list