* decl.c (finish_function): Give a pedwarn for reaching end of
non-void function, not just a warning.
Remove the above.
From-SVN: r18218
-1998-02-24 Brendan Kehoe <brendan@cygnus.com>
-
- * decl.c (finish_function): Give a pedwarn for reaching end of
- non-void function, not just a warning.
-
Tue Feb 24 01:40:24 1998 Jason Merrill <jason@yorick.cygnus.com>
* pt.c (instantiate_class_template): Don't instantiate if pedantic
{
/* If this function returns non-void and control can drop through,
complain. */
- cp_pedwarn ("control reaches end of non-void function `%D'", fndecl);
+ cp_warning ("control reaches end of non-void function `%D'", fndecl);
}
/* With just -W, complain only if function returns both with
and without a value. */