aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorRichard Earnshaw <rearnsha@arm.com>2004-04-29 13:49:54 +0000
committerRichard Earnshaw <rearnsha@gcc.gnu.org>2004-04-29 13:49:54 +0000
commit56141a6ad7f965b156427f25ab45bd1093b0b565 (patch)
tree7c74898b752935dde89b2af020686a2e96a9c86d /gcc/c-decl.c
parent2682e19f4145f725b00ab21b93a35e42d71c04da (diff)
downloadgcc-56141a6ad7f965b156427f25ab45bd1093b0b565.zip
gcc-56141a6ad7f965b156427f25ab45bd1093b0b565.tar.gz
gcc-56141a6ad7f965b156427f25ab45bd1093b0b565.tar.bz2
c-decl.c (get_parm_info): Use the correct tag keywords when warning about type declarations in prototypes.
* c-decl.c (get_parm_info): Use the correct tag keywords when warning about type declarations in prototypes. From-SVN: r81287
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 8f19647..ecf1198 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -4798,9 +4798,9 @@ get_parm_info (bool ellipsis)
}
break;
- case ENUMERAL_TYPE: keyword = "struct"; goto tag;
+ case ENUMERAL_TYPE: keyword = "enum"; goto tag;
case UNION_TYPE: keyword = "union"; goto tag;
- case RECORD_TYPE: keyword = "enum"; goto tag;
+ case RECORD_TYPE: keyword = "struct"; goto tag;
tag:
/* Types may not have tag-names, in which case the type
appears in the bindings list with b->id NULL. */