aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrendan Kehoe <brendan@lisa.cygnus.com>1997-09-23 02:13:04 +0000
committerBrendan Kehoe <brendan@gcc.gnu.org>1997-09-22 22:13:04 -0400
commit59f1f2c4c4a3deae8a0d592376425041f4ad9adb (patch)
treef623ac5d285103d1a6520518d1234edbc112a55c
parent8c8e6faa0d4257f6f5d4b841d0a0894e5640d0af (diff)
downloadgcc-59f1f2c4c4a3deae8a0d592376425041f4ad9adb.zip
gcc-59f1f2c4c4a3deae8a0d592376425041f4ad9adb.tar.gz
gcc-59f1f2c4c4a3deae8a0d592376425041f4ad9adb.tar.bz2
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
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/decl.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index a0488b7..b33c996 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+1997-09-22 Brendan Kehoe <brendan@lisa.cygnus.com>
+
+ * decl.c (start_function): Up warning of no return type to be a
+ pedwarn.
+
Sat Sep 20 15:31:00 1997 Jason Merrill <jason@yorick.cygnus.com>
* call.c (build_over_call): Do require_complete_type before
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 261ec65..e60cef6 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