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?
sjames at gcc dot gnu.org via Gcc-bugs Sat, 25 Oct 2025 15:11:09 -0700
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?