From 0d5280589c5d2da7cbb92473aed26ca94ed039bf Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Tue, 14 Jul 1992 00:57:11 +0000 Subject: [PATCH] (finish_function): Fix braino validating ret type of main. From-SVN: r1583 --- gcc/c-decl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 08c1fe8c631..9782d46c1ca 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -5793,7 +5793,7 @@ finish_function (nested) #ifdef DEFAULT_MAIN_RETURN if (! strcmp (IDENTIFIER_POINTER (DECL_NAME (fndecl)), "main")) { - if (TREE_TYPE (fndecl) != integer_type_node) + if (TREE_TYPE (TREE_TYPE (fndecl)) != integer_type_node) warning_with_decl (fndecl, "return type of `%s' is not `int'"); else { -- 2.30.2