aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-07-14 00:57:11 +0000
committerRichard Stallman <rms@gnu.org>1992-07-14 00:57:11 +0000
commit0d5280589c5d2da7cbb92473aed26ca94ed039bf (patch)
treeff0cdbdc23caa3c65692c825e17a32df5a21c4e5
parent77612f06b0937a630fd6b112d5c541257a564c58 (diff)
downloadgcc-0d5280589c5d2da7cbb92473aed26ca94ed039bf.zip
gcc-0d5280589c5d2da7cbb92473aed26ca94ed039bf.tar.gz
gcc-0d5280589c5d2da7cbb92473aed26ca94ed039bf.tar.bz2
(finish_function): Fix braino validating ret type of main.
From-SVN: r1583
-rw-r--r--gcc/c-decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 08c1fe8..9782d46 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
{