aboutsummaryrefslogtreecommitdiff
path: root/binutils/prdbg.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2009-10-18 23:14:09 +0000
committerAlan Modra <amodra@gmail.com>2009-10-18 23:14:09 +0000
commit9d7c77a5589df2d21b114d8ce8d3550de00e5609 (patch)
treedbce9ea9eb7dc7e7a217a1027ab770f3c68846e7 /binutils/prdbg.c
parentdabf22219ebc373528239930b354ebe7d02295a6 (diff)
downloadgdb-9d7c77a5589df2d21b114d8ce8d3550de00e5609.zip
gdb-9d7c77a5589df2d21b114d8ce8d3550de00e5609.tar.gz
gdb-9d7c77a5589df2d21b114d8ce8d3550de00e5609.tar.bz2
PR binutils/10793
* prdbg.c (tg_end_struct_type): Warning fix.
Diffstat (limited to 'binutils/prdbg.c')
-rw-r--r--binutils/prdbg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/binutils/prdbg.c b/binutils/prdbg.c
index 579215a..59313bb 100644
--- a/binutils/prdbg.c
+++ b/binutils/prdbg.c
@@ -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;
}