(finish_function): Fix braino validating ret type of main.
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Jul 1992 00:57:11 +0000 (00:57 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Jul 1992 00:57:11 +0000 (00:57 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1583 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-decl.c

index 08c1fe8..9782d46 100644 (file)
@@ -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
        {