diff options
author | Jason Merrill <jason@redhat.com> | 2012-05-03 17:29:07 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2012-05-03 17:29:07 -0400 |
commit | 88f4f86ff03dce4b72a0dbc7366e8469d894b711 (patch) | |
tree | 25891ff97205bf779a7fc7a3a1159adb38b89434 | |
parent | a85951f44271edd1710c04d79d70a133e13e8263 (diff) | |
download | gcc-88f4f86ff03dce4b72a0dbc7366e8469d894b711.zip gcc-88f4f86ff03dce4b72a0dbc7366e8469d894b711.tar.gz gcc-88f4f86ff03dce4b72a0dbc7366e8469d894b711.tar.bz2 |
gengtype.c (write_types): Fix warning message.
* gengtype.c (write_types): Fix warning message.
(write_local): Likewise.
From-SVN: r187118
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/gengtype.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a5a34e8..8081d80 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-05-03 Jason Merrill <jason@redhat.com> + + * gengtype.c (write_types): Fix warning message. + (write_local): Likewise. + 2012-05-02 Jason Merrill <jason@redhat.com> * dwarf2out.c (struct external_ref, build_local_stub): New. diff --git a/gcc/gengtype.c b/gcc/gengtype.c index 02d4c8c..814d9e0 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; } |