From 9d7c77a5589df2d21b114d8ce8d3550de00e5609 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sun, 18 Oct 2009 23:14:09 +0000 Subject: [PATCH] PR binutils/10793 * prdbg.c (tg_end_struct_type): Warning fix. --- binutils/ChangeLog | 3 +++ binutils/prdbg.c | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index d099159..ed33155 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,5 +1,8 @@ 2009-10-19 Jerker Bäck + 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. 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; } -- 2.7.4