(finish_function): Fix braino validating ret type of main.
From-SVN: r1583
This commit is contained in:
parent
77612f06b0
commit
0d5280589c
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user