]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PR binutils/10793
authorAlan Modra <amodra@gmail.com>
Sun, 18 Oct 2009 23:14:09 +0000 (23:14 +0000)
committerAlan Modra <amodra@gmail.com>
Sun, 18 Oct 2009 23:14:09 +0000 (23:14 +0000)
* prdbg.c (tg_end_struct_type): Warning fix.

binutils/ChangeLog
binutils/prdbg.c

index d09915990eee6692cce76bf7d5b0332c2334934b..ed33155c30156f7018e83190a4d0f7231695dd44 100644 (file)
@@ -1,5 +1,8 @@
 2009-10-19  Jerker Bäck  <jerker.back@gmail.com>
 
+       PR binutils/10793
+       * prdbg.c (tg_end_struct_type): Warning fix.
+
        PR binutils/10792
        * dlltool.c (dll_name_list_append): Declare variable at start
        of block.
index 579215a6684db52ccf09e23b3e718891f8bd6abf..59313bb82a24ddb670d51d5578af8e45da9393bf 100644 (file)
@@ -2088,8 +2088,7 @@ tg_struct_field (void *p, const char *name, bfd_vma bitpos ATTRIBUTE_UNUSED,
 static bfd_boolean
 tg_end_struct_type (void *p ATTRIBUTE_UNUSED)
 {
-  struct pr_handle *info = (struct pr_handle *) p;
-  assert (info->stack != NULL);
+  assert (((struct pr_handle *) p)->stack != NULL);
 
   return TRUE;
 }