From: Jason Merrill Date: Thu, 3 May 2012 21:29:07 +0000 (-0400) Subject: gengtype.c (write_types): Fix warning message. X-Git-Tag: misc/gccgo-go1_1_2~3112 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=88f4f86ff03dce4b72a0dbc7366e8469d894b711;p=thirdparty%2Fgcc.git gengtype.c (write_types): Fix warning message. * gengtype.c (write_types): Fix warning message. (write_local): Likewise. From-SVN: r187118 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a5a34e836944..8081d8031af5 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 02d4c8c89d1e..814d9e0c39c1 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; }