]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
decl.c (start_function): Up warning of no return type to be a pedwarn.
authorBrendan Kehoe <brendan@lisa.cygnus.com>
Tue, 23 Sep 1997 02:13:04 +0000 (02:13 +0000)
committerBrendan Kehoe <brendan@gcc.gnu.org>
Tue, 23 Sep 1997 02:13:04 +0000 (22:13 -0400)
* decl.c (start_function): Up warning of no return type to be a
pedwarn.

From-SVN: r15660

gcc/cp/ChangeLog
gcc/cp/decl.c

index a0488b795547420c6d3856914def50d0c0ab56d2..b33c99617b881dfff4cc9761eaa0695dffbf077b 100644 (file)
@@ -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
index 261ec65f185e0a487bf221f53d9f3b0b32dc9b5b..e60cef6bc9ad84146930ba7aa26ea946df3fc98c 100644 (file)
@@ -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