Commit 59f1f2c4 by Brendan Kehoe Committed by Brendan Kehoe

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
parent 8c8e6faa
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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment