]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gengtype.c (write_types): Fix warning message.
authorJason Merrill <jason@redhat.com>
Thu, 3 May 2012 21:29:07 +0000 (17:29 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 3 May 2012 21:29:07 +0000 (17:29 -0400)
* gengtype.c (write_types): Fix warning message.
(write_local): Likewise.

From-SVN: r187118

gcc/ChangeLog
gcc/gengtype.c

index a5a34e836944c84be13b4dc27be48b3024d4d8c8..8081d8031af5685b411d2d39f7972402c0721180 100644 (file)
@@ -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.
index 02d4c8c89d1e0134b3e178930758d3173fe3f574..814d9e0c39c141ad1dc72cca54f807688f77eb35 100644 (file)
@@ -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;
          }