https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109941
--- Comment #6 from Roy Jacobson <roi.jacobson1 at gmail dot com> --- Also worth mentioning that clang-tidy diagnoses this under bugprone-unused-return-value since May 23.
roi.jacobson1 at gmail dot com via Gcc-bugs Sun, 15 Dec 2024 11:36:44 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109941
--- Comment #6 from Roy Jacobson <roi.jacobson1 at gmail dot com> --- Also worth mentioning that clang-tidy diagnoses this under bugprone-unused-return-value since May 23.