From 56141a6ad7f965b156427f25ab45bd1093b0b565 Mon Sep 17 00:00:00 2001 From: Richard Earnshaw Date: Thu, 29 Apr 2004 13:49:54 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/c-decl.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 58488336d3f..9630090d2d6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-04-29 Richard Earnshaw + + * c-decl.c (get_parm_info): Use the correct tag keywords when + warning about type declarations in prototypes. + 2004-04-29 Paul Brook * config.gcc: Pull list of cores from arm-cores.def. diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 8f1964717da..ecf1198f5c5 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. */ -- 2.30.2