HP aC++/HP C Programmer's Guide (B3901-90036; A.06.26; September 2011)

problem or always a program bug, as with realloc. The following example results in
a warning on line 5:
int fn () __attribute__ ((warn_unused_result));
int test()
{
if (fn () < 0) return -1;
fn ();
return 0;
}
Attributes 145