https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108476
Florian Weimer <fw at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fw at gcc dot gnu.org --- Comment #4 from Florian Weimer <fw at gcc dot gnu.org> --- For GCC 14, we have -Wreturn-mismatch turned on by default, as an error. This diagnoses cases of extra or missing expressions in return statements. Together with the other warnings-as-errors changes, this seems to cover the request in the description.