projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77612f0
)
(finish_function): Fix braino validating ret type of main.
author
Richard Stallman
<rms@gnu.org>
Tue, 14 Jul 1992 00:57:11 +0000
(
00:57
+0000)
committer
Richard Stallman
<rms@gnu.org>
Tue, 14 Jul 1992 00:57:11 +0000
(
00:57
+0000)
From-SVN: r1583
gcc/c-decl.c
patch
|
blob
|
history
diff --git
a/gcc/c-decl.c
b/gcc/c-decl.c
index 08c1fe8c6318b62ae357760abf1d2af638076536..9782d46c1cabdf531bdd174ae2f1213e1c22e653 100644
(file)
--- 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
{