projects
/
platform
/
upstream
/
linaro-gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f264a90
)
(finish_function): Fix braino validating ret type of main.
author
rms
<rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Jul 1992 00:57:11 +0000
(
00:57
+0000)
committer
rms
<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
patch
|
blob
|
history
diff --git
a/gcc/c-decl.c
b/gcc/c-decl.c
index
08c1fe8
..
9782d46
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
{