https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36587
--- Comment #17 from Jonathan Wakely <redi at gcc dot gnu.org> --- No, the nodiscard warnings must be silenced with a cast to void. They can't be "stronger" than that.
redi at gcc dot gnu.org via Gcc-bugs Sun, 17 Mar 2024 23:50:49 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36587
--- Comment #17 from Jonathan Wakely <redi at gcc dot gnu.org> --- No, the nodiscard warnings must be silenced with a cast to void. They can't be "stronger" than that.