From 11433f425c4d54a50b14dc41b3b11d24d3ac0c76 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 1 Feb 1994 11:21:23 -0500 Subject: (grokdeclarator): `volatile' function warning corrected to read `noreturn' function warning. From-SVN: r6457 --- gcc/c-decl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc') diff --git a/gcc/c-decl.c b/gcc/c-decl.c index aad110d..dbb1f62 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -1,5 +1,5 @@ /* Process declarations and variables for C compiler. - Copyright (C) 1988, 1992, 1993 Free Software Foundation, Inc. + Copyright (C) 1988, 1992, 1993, 1994 Free Software Foundation, Inc. This file is part of GNU CC. @@ -4636,7 +4636,7 @@ grokdeclarator (declarator, declspecs, decl_context, initialized) if (volatilep && TREE_TYPE (TREE_TYPE (decl)) != void_type_node) - warning ("volatile function returns non-void value"); + warning ("`noreturn' function returns non-void value"); if (extern_ref) DECL_EXTERNAL (decl) = 1; @@ -6481,7 +6481,7 @@ finish_function (nested) current_function_returns_null |= can_reach_end; if (TREE_THIS_VOLATILE (fndecl) && current_function_returns_null) - warning ("`volatile' function does return"); + warning ("`noreturn' function does return"); else if (warn_return_type && can_reach_end && TYPE_MAIN_VARIANT (TREE_TYPE (TREE_TYPE (fndecl))) != void_type_node) /* If this function returns non-void and control can drop through, -- cgit v1.1