aboutsummaryrefslogtreecommitdiff
path: root/gcc/gengtype.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2012-05-03 21:29:07 +0000
committerJason Merrill <jason@redhat.com>2012-05-03 21:29:07 +0000
commit5138937b90a577066bcba4c7aa16d849f36b72f9 (patch)
tree25891ff97205bf779a7fc7a3a1159adb38b89434 /gcc/gengtype.c
parent32dd24bce3bcea6fddb2b27b54cd9d184e99db2d (diff)
* gengtype.c (write_types): Fix warning message.
(write_local): Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@187118 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gengtype.c')
-rw-r--r--gcc/gengtype.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gengtype.c b/gcc/gengtype.c
index 02d4c8c89d1..814d9e0c39c 100644
--- a/gcc/gengtype.c
+++ b/gcc/gengtype.c
@@ -3286,7 +3286,7 @@ write_types (outf_p output_header, type_p structures, type_p param_structs,
if (stru->u.s.line.file == NULL)
{
fprintf (stderr, "warning: structure `%s' used but not defined\n",
- s->u.s.tag);
+ stru->u.s.tag);
continue;
}
}
@@ -3522,7 +3522,7 @@ write_local (outf_p output_header, type_p structures, type_p param_structs)
if (stru->u.s.line.file == NULL)
{
fprintf (stderr, "warning: structure `%s' used but not defined\n",
- s->u.s.tag);
+ stru->u.s.tag);
continue;
}