Comment 11 for bug 305176

Revision history for this message
In , Rguenth (rguenth) wrote :

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" } */