Comment 37 for bug 305176

Revision history for this message
In , Filbranden-m (filbranden-m) wrote :

See bug 66425 for the cast to (void) to ignore warn_unused_result for a single case:

It looks like clang is already doing the right thing here...
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425#c2

gcc should catch up.

Cheers,
Filipe