[Bug c/66425] (void) cast doesn't suppress __attribute__((warn_unused_result))

2017-12-15 Thread costinc at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425 --- Comment #33 from costinc at gmail dot com --- There are legitimate reasons to ignore results, even without additional comments. One use case I ran into is: // ok() checks the same condition as the one returned by f(). while (ok

[Bug c/66425] (void) cast doesn't suppress __attribute__((warn_unused_result))

2016-04-07 Thread costinc at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425 costinc at gmail dot com changed: What|Removed |Added CC||costinc at gmail dot com