From 14e403d46d7cddc753102dd383e7fac7f6ffeecf Mon Sep 17 00:00:00 2001 From: Brendan Kehoe Date: Tue, 24 Feb 1998 09:22:12 -0500 Subject: [PATCH] decl.c (finish_function): Give a pedwarn for reaching end of non-void function, not just a warning. * decl.c (finish_function): Give a pedwarn for reaching end of non-void function, not just a warning. Remove the above. From-SVN: r18218 --- gcc/cp/ChangeLog | 5 ----- gcc/cp/decl.c | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index e10f4d7bb44..757a1fd2389 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,8 +1,3 @@ -1998-02-24 Brendan Kehoe - - * 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 * pt.c (instantiate_class_template): Don't instantiate if pedantic diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index f5f33970dbe..df260a304cd 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -12552,7 +12552,7 @@ finish_function (lineno, call_poplevel, nested) { /* 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. */ -- 2.30.2