From 59f1f2c4c4a3deae8a0d592376425041f4ad9adb Mon Sep 17 00:00:00 2001 From: Brendan Kehoe Date: Tue, 23 Sep 1997 02:13:04 +0000 Subject: [PATCH] decl.c (start_function): Up warning of no return type to be a pedwarn. * decl.c (start_function): Up warning of no return type to be a pedwarn. From-SVN: r15660 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/decl.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index a0488b795547..b33c99617b88 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +1997-09-22 Brendan Kehoe + + * decl.c (start_function): Up warning of no return type to be a + pedwarn. + Sat Sep 20 15:31:00 1997 Jason Merrill * call.c (build_over_call): Do require_complete_type before diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 261ec65f185e..e60cef6bc9ad 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -11293,7 +11293,7 @@ start_function (declspecs, declarator, attrs, pre_parsed_p) } if (warn_about_return_type) - warning ("return-type defaults to `int'"); + pedwarn ("return-type defaults to `int'"); /* Effective C++ rule 15. See also c_expand_return. */ if (warn_ecpp -- 2.47.2