Disable -Wreturn-type by default in all languages other from C++.
authorMartin Liska <mliska@suse.cz>
Wed, 15 Nov 2017 12:39:06 +0000 (13:39 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 15 Nov 2017 12:39:06 +0000 (12:39 +0000)
commit134d23547e10276280b1022c4463cc1f52bab831
treeff8c417c9e925fa6db7f1ed3018ffe6b351dfc07
parente6f146d226b225b1aa2fdcd0a868cb24e88321fd
Disable -Wreturn-type by default in all languages other from C++.

2017-11-15  Martin Liska  <mliska@suse.cz>

* tree-cfg.c (pass_warn_function_return::execute):
Compare warn_return_type for greater than zero.
2017-11-15  Martin Liska  <mliska@suse.cz>

* options.c (gfc_post_options):
Do not set default value of warn_return_type.
* trans-decl.c (gfc_trans_deferred_vars):
Compare warn_return_type for greater than zero.
(generate_local_decl): Likewise
(gfc_generate_function_code): Likewise.

From-SVN: r254764
gcc/ChangeLog
gcc/fortran/ChangeLog
gcc/fortran/options.c
gcc/fortran/trans-decl.c
gcc/tree-cfg.c