Disable -Wreturn-type by default in all languages other from C++.
commit8b72061f8c106def60d8ba7c907e2fedcbb9fa5e
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Nov 2017 12:39:06 +0000 (15 12:39 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Nov 2017 12:39:06 +0000 (15 12:39 +0000)
treeff8c417c9e925fa6db7f1ed3018ffe6b351dfc07
parent3912d56846ab250085620351248c3fa48516bd79
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@254764 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fortran/ChangeLog
gcc/fortran/options.c
gcc/fortran/trans-decl.c
gcc/tree-cfg.c