https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122427

--- Comment #1 from Sam James <sjames at gcc dot gnu.org> ---
Clang rejects it for C and C++. If I use warn_on_unused_result instead, it's
fine.

What is the right behaviour?

Reply via email to