From 88f4f86ff03dce4b72a0dbc7366e8469d894b711 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Thu, 3 May 2012 17:29:07 -0400 Subject: [PATCH] gengtype.c (write_types): Fix warning message. * gengtype.c (write_types): Fix warning message. (write_local): Likewise. From-SVN: r187118 --- gcc/ChangeLog | 5 +++++ gcc/gengtype.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a5a34e83694..8081d8031af 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-05-03 Jason Merrill + + * gengtype.c (write_types): Fix warning message. + (write_local): Likewise. + 2012-05-02 Jason Merrill * dwarf2out.c (struct external_ref, build_local_stub): New. 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; } -- 2.43.5