From 86907740aae15bf62cc0b74eb81d8f15caa210d6 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Mon, 6 Nov 2017 17:23:08 +0000 Subject: [PATCH] * gcc-interface/misc.c (gnat_post_options): Clear warn_return_type. From-SVN: r254459 --- gcc/ada/ChangeLog | 4 ++++ gcc/ada/gcc-interface/misc.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 6e2a7ffd099..660211c22fa 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,7 @@ +2017-11-06 Eric Botcazou + + * gcc-interface/misc.c (gnat_post_options): Clear warn_return_type. + 2017-10-31 Eric Botcazou PR ada/82785 diff --git a/gcc/ada/gcc-interface/misc.c b/gcc/ada/gcc-interface/misc.c index 7bdb3803c13..9a4a48fba42 100644 --- a/gcc/ada/gcc-interface/misc.c +++ b/gcc/ada/gcc-interface/misc.c @@ -262,6 +262,9 @@ gnat_post_options (const char **pfilename ATTRIBUTE_UNUSED) /* 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; -- 2.30.2