On Wed, Nov 15, 2017 at 10:54:23AM +0100, Martin Liška wrote: > gcc/c/ChangeLog: > > 2017-11-15 Martin Liska <mli...@suse.cz> > > * c-decl.c (grokdeclarator): > Compare warn_return_type for greater than zero. > (start_function): Likewise. > (finish_function): Likewise. > * c-typeck.c (c_finish_return): Likewise. > > gcc/cp/ChangeLog: > > 2017-11-15 Martin Liska <mli...@suse.cz> > > * decl.c (finish_function): > Compare warn_return_type for greater than zero. > * semantics.c (finish_return_stmt): Likewise.
The c/cp changes aren't really needed, are they? Because in that case you guarantee in the post options handling it is 0 or 1. The rest looks good (except for Ada that Eric doesn't want to change). Jakub