> Thank you for review, done that.
This has enabled -Wreturn-type for Ada, what we don't want since the warning
is outsmarted by the language, so I have applied this.
2017-11-06 Eric Botcazou <ebotca...@adacore.com>
* gcc-interface/misc.c (gnat_post_options): Clear warn_return_type.
--
Eric Botcazou
Index: gcc-interface/misc.c
===================================================================
--- gcc-interface/misc.c (revision 254449)
+++ gcc-interface/misc.c (working copy)
@@ -262,6 +262,9 @@ gnat_post_options (const char **pfilenam
/* No psABI change warnings for Ada. */
warn_psabi = 0;
+ /* No return type warnings for Ada. */
+ warn_return_type = 0;
+
/* No caret by default for Ada. */
if (!global_options_set.x_flag_diagnostics_show_caret)
global_dc->show_caret = false;