aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2012-05-03 17:29:07 -0400
committerJason Merrill <jason@gcc.gnu.org>2012-05-03 17:29:07 -0400
commit88f4f86ff03dce4b72a0dbc7366e8469d894b711 (patch)
tree25891ff97205bf779a7fc7a3a1159adb38b89434
parenta85951f44271edd1710c04d79d70a133e13e8263 (diff)
downloadgcc-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/ChangeLog5
-rw-r--r--gcc/gengtype.c4
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;
}